terraform: fix warn() call (#6497)

Fix warn() call.
This commit is contained in:
Felix Fontein
2023-05-07 20:57:54 +02:00
committed by GitHub
parent ca388f064a
commit 4e57240e9f
2 changed files with 3 additions and 1 deletions

View File

@@ -0,0 +1,2 @@
bugfixes:
- "terraform - fix broken ``warn()`` call (https://github.com/ansible-collections/community.general/pull/6497)."

View File

@@ -315,7 +315,7 @@ def _state_args(state_file):
if not state_file:
return []
if not os.path.exists(state_file):
module.warn(msg='Could not find state_file "{0}", the process will not destroy any resources, please check your state file path.'.format(state_file))
module.warn('Could not find state_file "{0}", the process will not destroy any resources, please check your state file path.'.format(state_file))
return ['-state', state_file]