Skip to content

Commit

Permalink
Merge pull request avocado-framework#3897 from zhencliu/tdx
Browse files Browse the repository at this point in the history
qemu_vm: Fix the issue of iterating a dict
  • Loading branch information
luckyh authored Apr 19, 2024
2 parents 6f570e9 + bfbb877 commit 8e3d751
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 8e3d751

Please sign in to comment.