sends it to subscribers.
"""
- CLIENT_ERRORS = config.ARVADOS_ERRORS
- LOGGER_NAME = 'arvnodeman.arvados_nodes'
+ def is_common_error(self, exception):
+ return isinstance(exception, config.ARVADOS_ERRORS)
def _item_key(self, node):
return node['uuid']
nodes, and sends it to subscribers.
"""
- CLIENT_ERRORS = config.CLOUD_ERRORS
- LOGGER_NAME = 'arvnodeman.cloud_nodes'
+ def is_common_error(self, exception):
+ return self._client.is_cloud_exception(exception)
def _item_key(self, node):
return node.id
def _send_request(self):
- return self._client.list_nodes()
+ n = self._client.list_nodes()
+ return n