Fix issue with whirpool status

This commit is contained in:
Taylor Helsper 2020-01-10 12:23:53 -06:00
parent ece0a2781a
commit e91d7a0f73

View File

@ -15,8 +15,8 @@ def get_whirlpool_status():
whirlpool_status_color = "gray"
whirlpool_initialized = os.path.isfile("/opt/mynode/whirlpool/whirlpool-cli-config.properties")
if is_whirlpool_enabled():
get_service_status_code("whirlpool")
if status != 0:
status_code = get_service_status_code("whirlpool")
if status_code != 0:
whirlpool_status = "Inactive"
whirlpool_status_color = "red"
else: