mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-03-26 21:33:12 +00:00
change list.copy() with list[:] for py2 compat in terraform module (#4621)
* change list.copy() with list[:] for py2 compat in terraform module * add changelog fragment * Update changelogs/fragments/4621-terraform-py2-compat.yml Co-authored-by: Felix Fontein <felix@fontein.de> Co-authored-by: Felix Fontein <felix@fontein.de>
This commit is contained in:
2
changelogs/fragments/4621-terraform-py2-compat.yml
Normal file
2
changelogs/fragments/4621-terraform-py2-compat.yml
Normal file
@@ -0,0 +1,2 @@
|
||||
bugfixes:
|
||||
- terraform - fix list initialization to support both Python 2 and Python 3 (https://github.com/ansible-collections/community.general/issues/4531).
|
||||
@@ -332,7 +332,7 @@ def build_plan(command, project_path, variables_args, state_file, targets, state
|
||||
if plan_path is None:
|
||||
f, plan_path = tempfile.mkstemp(suffix='.tfplan')
|
||||
|
||||
local_command = command.copy()
|
||||
local_command = command[:]
|
||||
|
||||
plan_command = [command[0], 'plan']
|
||||
|
||||
|
||||
Reference in New Issue
Block a user