don't stringify source_vars['private'] for Openstack inventory updates

shade's OS_CLIENT_CONFIG_FILE expects the generated YAML value to be
a boolean, not a stringified boolean

Addresses #5030
This commit is contained in:
Ryan Petrello
2017-01-31 14:55:21 -05:00
parent a544e322fd
commit f4a21a2650
2 changed files with 64 additions and 10 deletions

View File

@@ -1358,7 +1358,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', {})