Reverted the status to uppercase.
This commit is contained in:
parent
e9e9909fea
commit
6cb6716862
2 changed files with 3 additions and 3 deletions
|
|
@ -48,7 +48,7 @@ MINOR changes are "just-in-time" changes or small enhancements which should not
|
||||||
documentation.
|
documentation.
|
||||||
FIXES should never affect anything else then stability or security.
|
FIXES should never affect anything else then stability or security.
|
||||||
"""
|
"""
|
||||||
__version__ = '0.8.4.1'
|
__version__ = '0.8.4.2'
|
||||||
__author__ = 'Johannes Findeisen <you@hanez.org>'
|
__author__ = 'Johannes Findeisen <you@hanez.org>'
|
||||||
|
|
||||||
logger = logging.getLogger('uplink')
|
logger = logging.getLogger('uplink')
|
||||||
|
|
|
||||||
|
|
@ -87,7 +87,7 @@ class Uplink(Daemon):
|
||||||
self.__configuration.set_env_var('_uplink_' + uplink['identifier'] +
|
self.__configuration.set_env_var('_uplink_' + uplink['identifier'] +
|
||||||
'_status', 'UP')
|
'_status', 'UP')
|
||||||
|
|
||||||
status = 'up'
|
status = 'UP'
|
||||||
else:
|
else:
|
||||||
fail_count = self.__configuration.get_env_var('_uplink_' + uplink['identifier'] +
|
fail_count = self.__configuration.get_env_var('_uplink_' + uplink['identifier'] +
|
||||||
'_fail_count')
|
'_fail_count')
|
||||||
|
|
@ -112,7 +112,7 @@ class Uplink(Daemon):
|
||||||
self.__configuration.set_env_var('_uplink_' + uplink['identifier'] +
|
self.__configuration.set_env_var('_uplink_' + uplink['identifier'] +
|
||||||
'_status', 'DOWN')
|
'_status', 'DOWN')
|
||||||
|
|
||||||
status = 'down'
|
status = 'DOWN'
|
||||||
|
|
||||||
if self.__configuration.get_notification_gammu() is True:
|
if self.__configuration.get_notification_gammu() is True:
|
||||||
notification_gammu_repeat = self.__configuration.get_notification_gammu_repeat()
|
notification_gammu_repeat = self.__configuration.get_notification_gammu_repeat()
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue