Skip to content

Commit

Permalink
remove spurious []
Browse files Browse the repository at this point in the history
  • Loading branch information
aginies committed Oct 13, 2022
1 parent d85847d commit 894b59e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions pvirsh.py
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@ def system_command(cmd):

def find_all_vm(conn):
"""Find all VM from the current Hypervisor"""
allvm_list = []
allvm_list = ''
# Store all VM from the hypervisor
domains = conn.listAllDomains(0)
for domain in domains:
Expand Down Expand Up @@ -284,7 +284,7 @@ def vm_selected(file, group, conn):
def para_cmd(file, group, cmd, conn, show):
"""Start pool of command"""

results = []
results = ''
vms = vm_selected(file, group, conn)

cmdoptions = ''
Expand Down Expand Up @@ -648,7 +648,7 @@ def do_show_all_vm(self,args):
print('Connect to an hypervisor to show selected VM: help conn')
else:
allvms = find_all_vm(conn)
print(str(allvms))
print(esc('36;1;1')+str(allvms)+esc(0))

def help_show_all_vm(self):
print("Show all VM from the current hypervisor")
Expand Down

0 comments on commit 894b59e

Please sign in to comment.