Commit b5d8aa9f by Evgenii Terechkov

Use ovirtsdk if it installed, but fall out gracefully if it is not

parent c2599935
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment