added missing raise

This commit is contained in:
Brian Coca 2018-06-19 10:24:43 -04:00 committed by Brian Coca
parent 174d969714
commit 89f169127b

View file

@ -377,7 +377,7 @@ class InventoryManager(object):
from random import shuffle
shuffle(hosts)
elif order not in [None, 'inventory']:
AnsibleOptionsError("Invalid 'order' specified for inventory hosts: %s" % order)
raise AnsibleOptionsError("Invalid 'order' specified for inventory hosts: %s" % order)
return hosts