Skip to content

Commit

Permalink
verbose: show driver
Browse files Browse the repository at this point in the history
  • Loading branch information
AshleyYakeley committed Jan 13, 2025
1 parent 5536736 commit 4c8c8fa
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tool/nixvirt.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,11 @@ class Session:
def __init__(self,uri,verbose):
self.conn = libvirt.open(uri)
self.verbose = verbose
self.driver = self.conn.getType()

def vreport(self,msg):
if self.verbose:
print (msg, file=sys.stderr)
print (self.driver + " " + msg, file=sys.stderr)

class ObjectConnection:
def __init__(self,type,session):
Expand Down

0 comments on commit 4c8c8fa

Please # to comment.