Merge "[ussuri] paunch: exit module if config doesn't exist" into stable/ussuri
This commit is contained in:
commit
45258e3fe8
|
@ -178,6 +178,9 @@ class PaunchManager:
|
||||||
log_file=self.log_file)
|
log_file=self.log_file)
|
||||||
|
|
||||||
if self.config:
|
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'):
|
if self.config.endswith('.json'):
|
||||||
self.module.warn('Only one config was given, cleanup disabled')
|
self.module.warn('Only one config was given, cleanup disabled')
|
||||||
self.cleanup = False
|
self.cleanup = False
|
||||||
|
|
Loading…
Reference in New Issue