mirror of
https://github.com/valitydev/salt.git
synced 2024-11-08 09:23:56 +00:00
When a postgres cluster is to be removed, the user doesn't know if it's running or not. Mostly, the cluster will be running. So stop it by default.
If that is not desired behavior, then an option to stop it needs to be added, because otherwise a running cluster can never be removed.
This commit is contained in:
parent
4cb07cf997
commit
52d3b1baac
@ -121,7 +121,7 @@ def absent(version,
|
||||
msg = 'Cluster {0}/{1} is set to be removed'
|
||||
ret['comment'] = msg.format(version, name)
|
||||
return ret
|
||||
if __salt__['postgres.cluster_remove'](version, name):
|
||||
if __salt__['postgres.cluster_remove'](version, name, True):
|
||||
msg = 'Cluster {0}/{1} has been removed'
|
||||
ret['comment'] = msg.format(version, name)
|
||||
ret['changes'][name] = 'Absent'
|
||||
|
Loading…
Reference in New Issue
Block a user