added missing raise

(cherry picked from commit 89f169127b)
pull/42228/head
Brian Coca 6 years ago committed by Kevin Breit
parent 27e22347c9
commit 8f1fe87f4f

@ -0,0 +1,2 @@
bugfixes:
- added missing 'raise' to exception definition https://github.com/ansible/ansible/pull/41690

@ -375,7 +375,7 @@ class InventoryManager(object):
from random import shuffle from random import shuffle
shuffle(hosts) shuffle(hosts)
elif order not in [None, 'inventory']: 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 return hosts

Loading…
Cancel
Save