Merge pull request #5143 from evgkrsk/ovirt-import

Use ovirtsdk if it installed, but fall out gracefully if it is not
pull/5134/merge
Michael DeHaan 11 years ago
commit dc4a09a588

@ -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

Loading…
Cancel
Save