mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-02 19:32:47 +00:00
added missing raise
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user