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:
Mads R. Christensen 2016-01-01 23:05:18 +01:00 committed by rallytime
parent 51b57f1820
commit a50428d02c

View file

@ -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: