From 767aa6229dfb6e907bd2473e1f8efe235ebed44a Mon Sep 17 00:00:00 2001 From: Kevin Carter Date: Fri, 7 Nov 2014 08:59:16 -0600 Subject: [PATCH] This commit adds a check to the dynamic inventory script when parsing extra values --- rpc_deployment/inventory/dynamic_inventory.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/rpc_deployment/inventory/dynamic_inventory.py b/rpc_deployment/inventory/dynamic_inventory.py index 56fbd89424..7ce43ebd29 100755 --- a/rpc_deployment/inventory/dynamic_inventory.py +++ b/rpc_deployment/inventory/dynamic_inventory.py @@ -252,7 +252,10 @@ def _append_to_host_groups(inventory, container_type, assignment, host_type, if isinstance(container_vars, dict): for _keys, _vars in container_vars.items(): # Copy the options dictionary for manipulation - options = _vars.copy() + if isinstance(_vars, dict): + options = _vars.copy() + else: + options = _vars limit = None # If a limit is set use the limit string as a filter