Changeset View
Changeset View
Standalone View
Standalone View
swh/loader/core/loader.py
Show First 20 Lines • Show All 274 Lines • ▼ Show 20 Lines | def send_tool(self, tool): | ||||
tool['name'], tool['version'], tool['configuration']), | tool['name'], tool['version'], tool['configuration']), | ||||
extra={ | extra={ | ||||
'swh_type': 'storage_send_start', | 'swh_type': 'storage_send_start', | ||||
'swh_content_type': 'tool', | 'swh_content_type': 'tool', | ||||
'swh_num': 1, | 'swh_num': 1, | ||||
'swh_id': log_id | 'swh_id': log_id | ||||
}) | }) | ||||
tools = self.storage.tool_add([tool]) | tools = list(self.storage.tool_add([tool])) | ||||
tool_id = tools[0]['id'] | tool_id = tools[0]['id'] | ||||
self.log.debug( | self.log.debug( | ||||
'Done creating tool with name %s version %s and configuration %s' % ( # noqa | 'Done creating tool with name %s version %s and configuration %s' % ( # noqa | ||||
tool['name'], tool['version'], tool['configuration']), | tool['name'], tool['version'], tool['configuration']), | ||||
extra={ | extra={ | ||||
'swh_type': 'storage_send_end', | 'swh_type': 'storage_send_end', | ||||
'swh_content_type': 'tool', | 'swh_content_type': 'tool', | ||||
▲ Show 20 Lines • Show All 715 Lines • Show Last 20 Lines |