mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-07 22:02:50 +00:00
Some additional module cleanup of mistakes made during merging
This commit is contained in:
committed by
Matt Clay
parent
6ba6819446
commit
fa5386c488
@@ -234,7 +234,7 @@ class LibvirtConnection(object):
|
||||
|
||||
self.module = module
|
||||
|
||||
conn = libvirt.open(uri)
|
||||
conn = libvirt.open(uri)
|
||||
|
||||
if not conn:
|
||||
raise Exception("hypervisor connection failure")
|
||||
@@ -439,10 +439,10 @@ class VirtStoragePool(object):
|
||||
def list_pools(self, state=None):
|
||||
results = []
|
||||
for entry in self.conn.find_entry(-1):
|
||||
if state:
|
||||
if state:
|
||||
if state == self.conn.get_status2(entry):
|
||||
results.append(entry.name())
|
||||
else:
|
||||
else:
|
||||
results.append(entry.name())
|
||||
return results
|
||||
|
||||
|
||||
Reference in New Issue
Block a user