Skip to content

Commit

Permalink
convert dict to tuples as per james' comment
Browse files Browse the repository at this point in the history
  • Loading branch information
a-dubs committed Jul 16, 2024
1 parent 93c82a5 commit c8bc38f
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions cloudinit/sources/DataSourceIBMCloud.py
Original file line number Diff line number Diff line change
Expand Up @@ -401,13 +401,13 @@ def load_file(
e,
)

renames = {
"public_keys": "public-keys",
"hostname": "local-hostname",
"uuid": "instance-id",
}
renames = (
("public_keys", "public-keys"),
("hostname", "local-hostname"),
("uuid", "instance-id"),
)

for old_key, new_key in renames.items():
for old_key, new_key in renames:
if old_key in md_raw:
md[new_key] = md_raw[old_key]

Expand Down

0 comments on commit c8bc38f

Please sign in to comment.