mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-06 13:22:48 +00:00
modules/terraform: Quote the variable values in the command line (#43493)
* modules/terraform: Quote the variable values in the command line Fixes: #43492 * fix six import
This commit is contained in:
@@ -145,6 +145,7 @@ import os
|
||||
import json
|
||||
import tempfile
|
||||
import traceback
|
||||
from ansible.module_utils.six.moves import shlex_quote
|
||||
|
||||
from ansible.module_utils.basic import AnsibleModule
|
||||
|
||||
@@ -296,7 +297,7 @@ def main():
|
||||
for k, v in variables.items():
|
||||
variables_args.extend([
|
||||
'-var',
|
||||
'{0}={1}'.format(k, v)
|
||||
shlex_quote('{0}={1}'.format(k, v))
|
||||
])
|
||||
if variables_file:
|
||||
variables_args.extend(['-var-file', variables_file])
|
||||
|
||||
Reference in New Issue
Block a user