From 89f169127bead8f5a493eaf33782db2b1155425b Mon Sep 17 00:00:00 2001 From: Brian Coca Date: Tue, 19 Jun 2018 10:24:43 -0400 Subject: [PATCH] added missing raise --- lib/ansible/inventory/manager.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/ansible/inventory/manager.py b/lib/ansible/inventory/manager.py index 29f95de626..99f29cbacc 100644 --- a/lib/ansible/inventory/manager.py +++ b/lib/ansible/inventory/manager.py @@ -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