reviewable/pr18780/r1
Rik Theys 12 years ago
parent 588784ca71
commit c42e999114

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

Loading…
Cancel
Save