added missing raise

(cherry picked from commit 89f169127b)
pull/41880/head
Brian Coca 7 years ago committed by Matt Clay
parent 8ddb4c3b0d
commit 96896654bd

@ -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