Skip to content

Commit

Permalink
Merge pull request #21 from xenserver-next/private/bernhardk/py3-upda…
Browse files Browse the repository at this point in the history
…te-tuple-lambda-to-loop

xen-bugtool/make_inventory(): Py3: Update tuple lambda to for loop
  • Loading branch information
bernhardkaindl authored Nov 8, 2023
2 parents 3496f35 + aef3a07 commit 529752b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions xen-bugtool
Original file line number Diff line number Diff line change
Expand Up @@ -1800,8 +1800,8 @@ def make_inventory(inventory, subdir):
s.setAttribute('uptime', commands.getoutput(UPTIME))
document.getElementsByTagName(INVENTORY_XML_ROOT)[0].appendChild(s)

map(lambda (k, v): inventory_entry(document, subdir, k, v),
inventory.items())
for inventory_key, inventory_item in inventory.items():
inventory_entry(document, subdir, inventory_key, inventory_item)
return document.toprettyxml()

def inventory_entry(document, subdir, k, v):
Expand Down

0 comments on commit 529752b

Please sign in to comment.