mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-04-25 11:51:26 -07:00
[PR #6497/4e57240e backport][stable-6] terraform: fix warn() call (#6499)
terraform: fix warn() call (#6497)
Fix warn() call.
(cherry picked from commit 4e57240e9f
)
Co-authored-by: Felix Fontein <felix@fontein.de>
This commit is contained in:
parent
e9e494e1ff
commit
d679f51018
2 changed files with 3 additions and 1 deletions
|
@ -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]
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue