diff --git a/cloud/openstack/_glance_image.py b/cloud/openstack/_glance_image.py index 0f2de791b38..bdcef26795e 100644 --- a/cloud/openstack/_glance_image.py +++ b/cloud/openstack/_glance_image.py @@ -247,9 +247,9 @@ def main(): mutually_exclusive = [['file','copy_from']], ) - if not HAVE_GLANCECLIENT: + if not HAS_GLANCECLIENT: module.fail_json(msg='python-glanceclient is required for this module') - if not HAVE_KEYSTONECLIENT: + if not HAS_KEYSTONECLIENT: module.fail_json(msg='python-keystoneclient is required for this module') if module.params['state'] == 'present':