#58578 support absolute paths additionally (#58812)

* support absolute paths additionally

* add changelog

* rename changelog

* fix changelog to bugfix
pull/66018/head
Adam 5 years ago committed by Felix Fontein
parent 663171e218
commit e711d01ed1

@ -0,0 +1,3 @@
---
bugfixes:
- terraform - adding support for absolute paths additionally to the relative path within project_path (https://github.com/ansible/ansible/issues/58578)

@ -350,7 +350,7 @@ def main():
if state == 'absent':
command.extend(variables_args)
elif state == 'present' and plan_file:
if os.path.exists(project_path + "/" + plan_file):
if any([os.path.isfile(project_path + "/" + plan_file), os.path.isfile(plan_file)]):
command.append(plan_file)
else:
module.fail_json(msg='Could not find plan_file "{0}", check the path and try again.'.format(plan_file))

Loading…
Cancel
Save