Skip to content

Commit

Permalink
qemu_vm: Fix the issue of iterating a dict
Browse files Browse the repository at this point in the history
Signed-off-by: Zhenchao Liu <[email protected]>
  • Loading branch information
zhencliu committed Apr 19, 2024
1 parent 6f570e9 commit bfbb877
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion virttest/qemu_vm.py
Original file line number Diff line number Diff line change
Expand Up @@ -1696,7 +1696,7 @@ def add_secure_guest_descriptor(params):
sev_mach_props = {}
tdx_mach_props = {"kvm-type": "tdx"}
backend_props = {"sev": sev_mach_props, "tdx": tdx_mach_props}
for k, v in backend_props.get(sectype, {}):
for k, v in backend_props.get(sectype, {}).items():
machine_dev.set_param(k, v)

def __iothread_conflict_check(params):
Expand Down

0 comments on commit bfbb877

Please sign in to comment.