mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-07-27 15:11:23 -07:00
os_ironic: fix broken import (#26802)
This commit is contained in:
parent
613690bd46
commit
d9265c7498
2 changed files with 7 additions and 2 deletions
|
@ -156,7 +156,11 @@ try:
|
||||||
except ImportError:
|
except ImportError:
|
||||||
HAS_SHADE = False
|
HAS_SHADE = False
|
||||||
|
|
||||||
import jsonpatch
|
try:
|
||||||
|
import jsonpatch
|
||||||
|
HAS_JSONPATCH = True
|
||||||
|
except ImportError:
|
||||||
|
HAS_JSONPATCH = False
|
||||||
|
|
||||||
|
|
||||||
def _parse_properties(module):
|
def _parse_properties(module):
|
||||||
|
@ -231,6 +235,8 @@ def main():
|
||||||
|
|
||||||
if not HAS_SHADE:
|
if not HAS_SHADE:
|
||||||
module.fail_json(msg='shade is required for this module')
|
module.fail_json(msg='shade is required for this module')
|
||||||
|
if not HAS_JSONPATCH:
|
||||||
|
module.fail_json(msg='jsonpatch is required for this module')
|
||||||
if (module.params['auth_type'] in [None, 'None'] and
|
if (module.params['auth_type'] in [None, 'None'] and
|
||||||
module.params['ironic_url'] is None):
|
module.params['ironic_url'] is None):
|
||||||
module.fail_json(msg="Authentication appears to be disabled, "
|
module.fail_json(msg="Authentication appears to be disabled, "
|
||||||
|
|
|
@ -47,7 +47,6 @@ lib/ansible/modules/cloud/google/gcdns_record.py
|
||||||
lib/ansible/modules/cloud/google/gcdns_zone.py
|
lib/ansible/modules/cloud/google/gcdns_zone.py
|
||||||
lib/ansible/modules/cloud/misc/serverless.py
|
lib/ansible/modules/cloud/misc/serverless.py
|
||||||
lib/ansible/modules/cloud/openstack/os_client_config.py
|
lib/ansible/modules/cloud/openstack/os_client_config.py
|
||||||
lib/ansible/modules/cloud/openstack/os_ironic.py
|
|
||||||
lib/ansible/modules/cloud/ovirt/ovirt_disks.py
|
lib/ansible/modules/cloud/ovirt/ovirt_disks.py
|
||||||
lib/ansible/modules/cloud/univention/udm_user.py
|
lib/ansible/modules/cloud/univention/udm_user.py
|
||||||
lib/ansible/modules/cloud/vmware/vca_nat.py
|
lib/ansible/modules/cloud/vmware/vca_nat.py
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue