summaryrefslogtreecommitdiff
path: root/lib/ansible/modules/cloud/openstack/os_object.py
diff options
context:
space:
mode:
Diffstat (limited to 'lib/ansible/modules/cloud/openstack/os_object.py')
-rw-r--r--lib/ansible/modules/cloud/openstack/os_object.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/ansible/modules/cloud/openstack/os_object.py b/lib/ansible/modules/cloud/openstack/os_object.py
index 38e867b965..51d6ae3243 100644
--- a/lib/ansible/modules/cloud/openstack/os_object.py
+++ b/lib/ansible/modules/cloud/openstack/os_object.py
@@ -112,12 +112,12 @@ def main():
module_kwargs = openstack_module_kwargs()
module = AnsibleModule(argument_spec, **module_kwargs)
- shade, cloud = openstack_cloud_from_module(module)
+ sdk, cloud = openstack_cloud_from_module(module)
try:
changed = process_object(cloud, **module.params)
module.exit_json(changed=changed)
- except shade.OpenStackCloudException as e:
+ except sdk.exceptions.OpenStackCloudException as e:
module.fail_json(msg=str(e))