Skip to content

Commit

Permalink
Merge pull request avocado-framework#3851 from chloerh/shell-error
Browse files Browse the repository at this point in the history
Fixup:Missing args of ShellError
  • Loading branch information
dzhengfy authored Mar 13, 2024
2 parents de47e68 + 3a3b763 commit bc6f4e4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion virttest/utils_net.py
Original file line number Diff line number Diff line change
Expand Up @@ -4064,7 +4064,7 @@ def get_default_gateway(
_, output = utils_misc.cmd_status_output(cmd, shell=True, session=session)
matches = [x for x in output.split("\n") if re.match(regex, x)]
if not matches:
raise aexpect.ShellError
raise aexpect.ShellError(cmd, output)
if ip_ver == "ipv6" and any("fe80:" not in m for m in matches):
LOG.error("Multipath ipv6 router can not be recognized!")
return None
Expand Down

0 comments on commit bc6f4e4

Please sign in to comment.