mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
On an unclean shutdown, if oncleanshutdown is given a path, an keyy:value of shutdown:unclean is added to the returned data. The documentation states that the key should be 'uncleanshutdown' and that the value should either be True or False. This is fixed in the code
This commit is contained in:
parent
51b57f1820
commit
a50428d02c
1 changed files with 2 additions and 2 deletions
|
@ -88,9 +88,9 @@ def beacon(config):
|
|||
if 'uncleanshutdown' in config[service] and not ret_dict[service]['running']:
|
||||
filename = config[service]['uncleanshutdown']
|
||||
if os.path.exists(filename):
|
||||
ret_dict[service]['shutdown'] = 'unclean'
|
||||
ret_dict[service]['uncleanshutdown'] = True
|
||||
else:
|
||||
ret_dict[service]['shutdown'] = 'clean'
|
||||
ret_dict[service]['uncleanshutdown'] = False
|
||||
|
||||
if 'onchangeonly' in config[service] and config[service]['onchangeonly'] is True:
|
||||
if service not in last_status:
|
||||
|
|
Loading…
Add table
Reference in a new issue