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

This commit is contained in:
Zuul 2020-07-17 16:51:03 +00:00 committed by Gerrit Code Review
commit 45258e3fe8
1 changed files with 3 additions and 0 deletions

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