Skip to content

Commit c4dede7

Browse files
authored
Merge pull request avocado-framework#4138 from mcasquer/3953_fix_realtime_mlock
2 parents 8a111f4 + 75d1b44 commit c4dede7

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

virttest/qemu_vm.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3168,10 +3168,10 @@ def __iothread_conflict_check(params):
31683168
if params.get("realtime_mlock"):
31693169
if devices.has_option("overcommit"):
31703170
try:
3171-
realtime_mlock = params.get_boolean("realtime_mlock")
3172-
attr_info = ["mem-lock", realtime_mlock, bool]
3171+
attr_type = type(params.get_boolean("realtime_mlock"))
31733172
except ValueError:
3174-
attr_info = ["mem-lock", params["realtime_mlock"], None]
3173+
attr_type = None
3174+
attr_info = ["mem-lock", params["realtime_mlock"], attr_type]
31753175
add_qemu_option(devices, "overcommit", [attr_info])
31763176
else:
31773177
attr_info = ["mlock", params["realtime_mlock"], bool]

0 commit comments

Comments
 (0)