Skip to content

Commit 342dda4

Browse files
committed
lint
1 parent 8703dd7 commit 342dda4

File tree

1 file changed

+13
-11
lines changed

1 file changed

+13
-11
lines changed

src/service/agent/helpers.py

Lines changed: 13 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -267,17 +267,19 @@ def update_resource(backend: str, message: backend_messages.UpdateNodeBody,
267267
rowcount = postgres.execute_commit_command(commit_cmd, columns)
268268
if rowcount > 0:
269269
pool_config = connectors.fetch_verbose_pool_config(postgres, backend)
270-
resource_entry = workflow.ResourcesEntry(hostname=message.hostname,
271-
label_fields=message.label_fields,
272-
backend=backend, taints=message.taints,
273-
# Dummy placeholder values below
274-
exposed_fields={},
275-
usage_fields={},
276-
non_workflow_usage_fields={},
277-
allocatable_fields={},
278-
pool_platform_labels={},
279-
resource_type=connectors.BackendResourceType.SHARED,
280-
conditions=message.conditions)
270+
resource_type = connectors.BackendResourceType.SHARED
271+
resource_entry = workflow.ResourcesEntry(
272+
hostname=message.hostname,
273+
label_fields=message.label_fields,
274+
backend=backend, taints=message.taints,
275+
# Dummy placeholder values below
276+
exposed_fields={},
277+
usage_fields={},
278+
non_workflow_usage_fields={},
279+
allocatable_fields={},
280+
pool_platform_labels={},
281+
resource_type=resource_type,
282+
conditions=message.conditions)
281283
config_helpers.update_node_pool_platform(resource_entry, backend, pool_config)
282284

283285

0 commit comments

Comments
 (0)