diff --git a/cloud/ovirt b/cloud/ovirt old mode 100644 new mode 100755 index b71d3303757..fb84e918001 --- a/cloud/ovirt +++ b/cloud/ovirt @@ -205,8 +205,12 @@ action: ovirt > ''' -from ovirtsdk.api import API -from ovirtsdk.xml import params +try: + from ovirtsdk.api import API + from ovirtsdk.xml import params +except ImportError: + print "failed=True msg='ovirtsdk required for this module'" + sys.exit(1) # ------------------------------------------------------------------- # # create connection with API