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

View file

@ -81,7 +81,7 @@ options:
description:
- Information necessary to turn this server on / off.
This often includes such things as IPMI username, password, and IP address.
required: true
required: true
deploy:
description:
- Information necessary to deploy this server directly, without using Nova. THIS IS NOT RECOMMENDED.
@ -91,7 +91,7 @@ options:
management:
description:
- Information necessary to interact with this server's management interface. May be shared by power_info in some cases.
required: true
required: true
nics:
description:
- 'A list of network interface cards, eg, " - mac: aa:bb:cc:aa:bb:cc"'