Skip to content

Commit

Permalink
Merge pull request #5881 from chloerh/svirt-unbound-var
Browse files Browse the repository at this point in the history
selinux_seclabel_per_device:Fix UnboundLocalError
  • Loading branch information
Yingshun authored Sep 23, 2024
2 parents 62fafc9 + 8a4c614 commit b3412ce
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ def run(test, params, env):
if not status_error:
test.fail(details)
test.log.debug("VM XML: %s.", VMXML.new_from_inactive_dumpxml(vm_name))
if res.exit_status == 0:
if not ('res' in locals() and res.exit_status != 0):
res = virsh.start(vm.name)
else:
test.log.info("TEST_STEP: Hot plug a device with dac setting.")
Expand Down

0 comments on commit b3412ce

Please sign in to comment.