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

reviewable/pr18780/r1
Evgenii Terechkov 11 years ago
parent 21144a3014
commit dc17b0751d

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

Loading…
Cancel
Save