Skip to content

Commit

Permalink
refactor(slurmctld): remove unnecessary str conversion
Browse files Browse the repository at this point in the history
  • Loading branch information
dsloanm authored and NucciTheBoss committed Jan 13, 2025
1 parent e53c30f commit 2b5aaee
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion charms/slurmctld/src/charm.py
Original file line number Diff line number Diff line change
Expand Up @@ -246,7 +246,7 @@ def _update_gres_conf(self, event: SlurmdAvailableEvent) -> None:
if gres_info := event.gres_info:
gres_nodes = []
for resource in gres_info:
node = GRESNode(NodeName=str(event.node_name), **resource)
node = GRESNode(NodeName=event.node_name, **resource)
gres_nodes.append(node)

with self._slurmctld.gres.edit() as config:
Expand Down

0 comments on commit 2b5aaee

Please sign in to comment.