pull/4420/head
Rik Theys 2013-05-26 23:06:23 +02:00
parent a61978aed9
commit e97f789913
1 changed files with 5 additions and 5 deletions

View File

@ -281,11 +281,11 @@ class Virt(object):
results = []
for x in vms:
try:
if state:
vmstate = self.conn.get_status2(x)
if vmstate == state:
results.append(x.name())
else:
if state:
vmstate = self.conn.get_status2(x)
if vmstate == state:
results.append(x.name())
else:
results.append(x.name())
except:
pass