1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00
This commit is contained in:
Rik Theys 2013-05-26 23:06:23 +02:00
parent a61978aed9
commit e97f789913

View file

@ -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