Merge pull request #5143 from evgkrsk/ovirt-import

Use ovirtsdk if it installed, but fall out gracefully if it is not
This commit is contained in:
Michael DeHaan 2013-12-03 16:27:54 -08:00
commit 25776cc4f2

4
cloud/ovirt Normal file → Executable file
View file

@ -205,8 +205,12 @@ action: ovirt >
'''
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