Browse Source

Merge "[ussuri] paunch: exit module if config doesn't exist" into stable/ussuri

tags/1.5.0
Zuul 3 weeks ago
committed by Gerrit Code Review
parent
commit
45258e3fe8
1 changed files with 3 additions and 0 deletions
  1. +3
    -0
      tripleo_ansible/ansible_plugins/modules/paunch.py

+ 3
- 0
tripleo_ansible/ansible_plugins/modules/paunch.py View File

@@ -178,6 +178,9 @@ class PaunchManager:
log_file=self.log_file)

if self.config:
# Do nothing if config path doesn't exist
if not os.path.exists(self.config):
self.module.exit_json(**self.results)
if self.config.endswith('.json'):
self.module.warn('Only one config was given, cleanup disabled')
self.cleanup = False


Loading…
Cancel
Save