mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-07 13:52:54 +00:00
Some additional module cleanup of mistakes made during merging
This commit is contained in:
committed by
Matt Clay
parent
6ba6819446
commit
fa5386c488
0
lib/ansible/modules/cloud/centurylink/__init__.py
Normal file
0
lib/ansible/modules/cloud/centurylink/__init__.py
Normal 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
|
||||
|
||||
|
||||
@@ -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"'
|
||||
|
||||
Reference in New Issue
Block a user