Remove deprecated os_ironic_facts
Change-Id: I89c331517dd97373eb99f613bb00e3cfc07f3d5c
This commit is contained in:
parent
a4657cc600
commit
1f0662bcf0
@ -1 +0,0 @@
|
||||
os_ironic_node_info.py
|
@ -90,10 +90,6 @@ def main():
|
||||
)
|
||||
module_kwargs = openstack_module_kwargs() # noqa: F405
|
||||
module = IronicModule(argument_spec, **module_kwargs)
|
||||
compat = module._name == 'os_ironic_facts'
|
||||
if compat:
|
||||
module.deprecate('Using os_ironic_node_info via os_ironic_facts is '
|
||||
'deprecated and may not work correctly')
|
||||
|
||||
if not HAS_SDK:
|
||||
module.fail_json(msg='openstacksdk is required for this module')
|
||||
@ -134,15 +130,7 @@ def main():
|
||||
nics = cloud.list_nics_for_machine(server['uuid'])
|
||||
facts['nics'] = [{'mac': nic['address']} for nic in nics]
|
||||
|
||||
if compat:
|
||||
# NOTE(dtantsur): this item conflicts with the ansible's own
|
||||
# network_interface breaking everything.
|
||||
facts.pop('network_interface', None)
|
||||
|
||||
if compat:
|
||||
module.exit_json(changed=False, ansible_facts=facts)
|
||||
else:
|
||||
module.exit_json(changed=False, node=facts)
|
||||
module.exit_json(changed=False, node=facts)
|
||||
|
||||
else:
|
||||
module.fail_json(msg="node not found.")
|
||||
|
4
releasenotes/notes/facts-1a84f77291c7d39d.yaml
Normal file
4
releasenotes/notes/facts-1a84f77291c7d39d.yaml
Normal file
@ -0,0 +1,4 @@
|
||||
---
|
||||
upgrade:
|
||||
- |
|
||||
Removes the deprecated Ansible module ``os_ironic_facts``.
|
Loading…
x
Reference in New Issue
Block a user