Merge pull request #492 from cloudnull/string-check

Additional change required for Cinder AZ options
This commit is contained in:
Darren Birkett 2014-11-13 09:51:27 +00:00
commit c46b0f9eba

View File

@ -252,7 +252,10 @@ def _append_to_host_groups(inventory, container_type, assignment, host_type,
if isinstance(container_vars, dict): if isinstance(container_vars, dict):
for _keys, _vars in container_vars.items(): for _keys, _vars in container_vars.items():
# Copy the options dictionary for manipulation # Copy the options dictionary for manipulation
if isinstance(_vars, dict):
options = _vars.copy() options = _vars.copy()
else:
options = _vars
limit = None limit = None
# If a limit is set use the limit string as a filter # If a limit is set use the limit string as a filter