Skip to content

Commit

Permalink
fix error handling relay/node
Browse files Browse the repository at this point in the history
Signed-off-by: Iris Koester <iris.m.koester@gmail.com>
  • Loading branch information
iripiri committed Aug 14, 2023
1 parent d3779d1 commit 2007bf8
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
2 changes: 1 addition & 1 deletion villas/controller/components/managers/villas_node.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ def reconcile(self):
except Exception as e:
self.change_to_error('failed to reconcile',
exception=str(e),
args=e.args)
args=str(e.args))

@property
def status(self):
Expand Down
8 changes: 7 additions & 1 deletion villas/controller/components/managers/villas_relay.py
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,13 @@ def reconcile(self):
def status(self):
status = super().status

status['status']['villas_relay_version'] = self._status.get('version')
try:
version = self._status.get('version')
status['status']['villas_relay_version'] = version
except Exception as e:
self.change_to_error('failed to get version from VILLASrelay',
exception=str(e),
args=str(e.args))

return status

Expand Down

0 comments on commit 2007bf8

Please sign in to comment.