This commit is contained in:
Rik Theys 2013-05-26 23:06:23 +02:00
parent 588784ca71
commit c42e999114

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