Skip to content

Commit

Permalink
Debug for virt_admin
Browse files Browse the repository at this point in the history
Signed-off-by: Yan Fu <yafu@redhat.com>
  • Loading branch information
yafu-1 committed Jul 29, 2024
1 parent c6256eb commit 02c75e4
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions virttest/virt_admin.py
Original file line number Diff line number Diff line change
Expand Up @@ -153,8 +153,7 @@ def __init__(
* session = VirtadminSession(virtadmin.VIRSH_EXEC, auto_close=True)
"""

self.uri = uri
self.uri = "virtqemud:///system"
self.remote_ip = remote_ip
self.remote_user = remote_user
self.remote_pwd = remote_pwd
Expand Down Expand Up @@ -209,6 +208,7 @@ def __init__(

# fail if libvirtd is not running
if check_libvirtd:
uri = "virtqemud:///system"
if self.cmd_status("uri", timeout=60) != 0:
LOG.debug(
"Persistent virt-admin session is not responding, "
Expand Down Expand Up @@ -680,7 +680,7 @@ def command(cmd, **dargs):
"""

virtadmin_exec = dargs.get("virtadmin_exec", VIRTADMIN_EXEC)
uri = dargs.get("uri", None)
uri = dargs.get("uri", "virtqemud:///system")
debug = dargs.get("debug", False)
# Caller deals with errors
ignore_status = dargs.get("ignore_status", True)
Expand Down

0 comments on commit 02c75e4

Please sign in to comment.