Merge pull request #49976 from rallytime/bp-49966

Back-port #49966 to fluorine
This commit is contained in:
Nicole Thomas 2018-10-10 14:48:07 -04:00 committed by GitHub
commit 10d9925c79
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -333,7 +333,7 @@ def playbooks(playbook, rundir=None, check=False, diff=False, extra_vars=None,
if diff:
command.append('--diff')
if isinstance(extra_vars, dict):
command.append('--extra-vars={0}'.format(json.dumps(extra_vars)))
command.append("--extra-vars='{0}'".format(json.dumps(extra_vars)))
elif isinstance(extra_vars, six.text_type) and extra_vars.startswith('@'):
command.append('--extra-vars={0}'.format(extra_vars))
if flush_cache: