mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-04-24 03:11:24 -07:00
Fix pylint errors (#5933)
* Fix pylint errors. * Also adjust to https://github.com/ansible/ansible/pull/79909.
This commit is contained in:
parent
a64df658c5
commit
b1d9507cd2
9 changed files with 12 additions and 9 deletions
|
@ -628,9 +628,9 @@ def main():
|
|||
|
||||
outputs_command = [command[0], 'output', '-no-color', '-json'] + _state_args(state_file)
|
||||
rc, outputs_text, outputs_err = module.run_command(outputs_command, cwd=project_path)
|
||||
outputs = {}
|
||||
if rc == 1:
|
||||
module.warn("Could not get Terraform outputs. This usually means none have been defined.\nstdout: {0}\nstderr: {1}".format(outputs_text, outputs_err))
|
||||
outputs = {}
|
||||
elif rc != 0:
|
||||
module.fail_json(
|
||||
msg="Failure when getting Terraform outputs. "
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue