Merge pull request #5083 from ryanpetrello/fix-5030

don't stringify source_vars['private'] for Openstack inventory updates
This commit is contained in:
Ryan Petrello
2017-02-01 08:53:17 -05:00
committed by GitHub
2 changed files with 64 additions and 10 deletions

View File

@@ -1367,7 +1367,7 @@ class RunInventoryUpdate(BaseTask):
project_name=credential.project)
if credential.domain not in (None, ''):
openstack_auth['domain_name'] = credential.domain
private_state = str(inventory_update.source_vars_dict.get('private', 'true'))
private_state = inventory_update.source_vars_dict.get('private', True)
# Retrieve cache path from inventory update vars if available,
# otherwise create a temporary cache path only for this update.
cache = inventory_update.source_vars_dict.get('cache', {})