Commit cdc5e04d by Daniel Koch

Add check to make sure dopy is at least version 0.2.2 for digital_ocean module

parent 8c0e8354
......@@ -160,9 +160,14 @@ import os
import time
try:
import dopy
from dopy.manager import DoError, DoManager
except ImportError as e:
print "failed=True msg='dopy required for this module'"
print "failed=True msg='dopy >= 0.2.2 required for this module'"
sys.exit(1)
if dopy.__version__ < '0.2.2':
print "failed=True msg='dopy >= 0.2.2 required for this module'"
sys.exit(1)
class TimeoutError(DoError):
......
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