mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-10-26 13:56:09 -07:00
* minor refactors on plugins/modules/cloud/misc
* added changelog fragment
* removed unreachable statement
* Update plugins/modules/cloud/misc/terraform.py
Co-authored-by: Felix Fontein <felix@fontein.de>
* Update plugins/modules/cloud/misc/rhevm.py
Co-authored-by: Felix Fontein <felix@fontein.de>
* adjusted per PR comment
Co-authored-by: Felix Fontein <felix@fontein.de>
(cherry picked from commit 3afcf7e75d)
Co-authored-by: Alexei Znamensky <103110+russoz@users.noreply.github.com>
This commit is contained in:
parent
5a7d234d80
commit
0a676406b3
7 changed files with 32 additions and 29 deletions
|
|
@ -233,7 +233,7 @@ def get_version(bin_path):
|
|||
|
||||
|
||||
def preflight_validation(bin_path, project_path, version, variables_args=None, plan_file=None):
|
||||
if project_path in [None, ''] or '/' not in project_path:
|
||||
if project_path is None or '/' not in project_path:
|
||||
module.fail_json(msg="Path for Terraform project can not be None or ''.")
|
||||
if not os.path.exists(bin_path):
|
||||
module.fail_json(msg="Path for Terraform binary '{0}' doesn't exist on this host - check the path and try again please.".format(bin_path))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue