added missing raise
This commit is contained in:
parent
174d969714
commit
89f169127b
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue