Skip to content

Commit

Permalink
added missing raise
Browse files Browse the repository at this point in the history
  • Loading branch information
bcoca committed Jun 19, 2018
1 parent 174d969 commit 89f1691
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/ansible/inventory/manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -377,7 +377,7 @@ def get_hosts(self, pattern="all", ignore_limits=False, ignore_restrictions=Fals
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

Expand Down

0 comments on commit 89f1691

Please sign in to comment.