Return status as integer (#63)

During the first start the if statement on line 237 does not get evaluated correctly and will not "return"
Therefore by any restart the first evaluation triggers a update even if the original status is same.
This commit is contained in:
mazhead
2019-04-04 17:39:25 +02:00
committed by mtakaki
parent 3af53ce9b6
commit 9569818bb0

View File

@@ -60,7 +60,7 @@ def get_current_status(endpoint_url, component_id, headers):
if get_status_request.ok:
# The component exists.
return get_status_request.json()['data']['status']
return int(get_status_request.json()['data']['status'])
else:
raise ComponentNonexistentError(component_id)