Skip to content

Commit

Permalink
openvswitch-config-update: fix python2ism in python3
Browse files Browse the repository at this point in the history
PR xapi-project#5261 made the switch to python3 but missed a dict.itervalues() call,
which causes a failure with python3.

Signed-off-by: Yann Dirson <[email protected]>
  • Loading branch information
ydirson committed Aug 7, 2024
1 parent bc76f7c commit 6ebdd14
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/plugins/openvswitch-config-update
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ def update(session, args):
if new_controller:
query = 'field "management"="true"'
recs = session.xenapi.PIF.get_all_records_where(query)
for rec in recs.itervalues():
for rec in recs.values():
pool_mgmt_macs[rec.get("MAC")] = rec.get("device")

dib_changed = False
Expand Down

0 comments on commit 6ebdd14

Please sign in to comment.