Fixed issue #35198 now without deprecated code.

This commit is contained in:
Justin Zandbergen 2016-08-05 19:10:43 +02:00 committed by rallytime
parent 1241d87f1d
commit 8bba13896a

View file

@ -86,13 +86,13 @@ def beacon(config):
# If no options is given to the service, we fall back to the defaults
# assign a False value to oncleanshutdown and onchangeonly. Those
# key:values are then added to the service dictionary.
if not config[service].has_key('oncleanshutdown'):
if not 'oncleanshutdown' in config[service]:
config[service]['oncleanshutdown'] = False
if not config[service].has_key('emitatstartup'):
if not 'emitatstartup' in config[service]:
config[service]['emitatstartup'] = True
if not config[service].has_key('onchangeonly'):
if not 'onchangeonly' in config[service]:
config[service]['onchangeonly'] = False
# We only want to report the nature of the shutdown
# if the current running status is False
# as well as if the config for the beacon asks for it