Some additional module cleanup of mistakes made during merging

This commit is contained in:
James Cammarata
2016-12-08 02:01:38 -05:00
committed by Matt Clay
parent 6ba6819446
commit fa5386c488
36 changed files with 183 additions and 183 deletions

View File

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