Skip to content

Commit

Permalink
[Python 3] convert bytes to string
Browse files Browse the repository at this point in the history
  • Loading branch information
BloodyFoxy committed Jun 21, 2023
1 parent 9852084 commit 2b9cf44
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion main.py
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ def tres_to_dict(tres_csv):
if part != 'ALL':
hl = pyslurm.hostlist()
hl.create(partitions[part]['nodes'])
for node in hl.get_list():
for node in [x.decode() for x in hl.get_list()]:
if node not in node_partitions:
node_partitions[node] = []
node_partitions[node].append(part)
Expand Down

0 comments on commit 2b9cf44

Please sign in to comment.