Add missing import

parent 6649e36b
......@@ -39,6 +39,7 @@ import sys
import tempfile
import urllib2
import subprocess
from subprocess import CalledProcessError
def authenticate(request, login, password):
......@@ -284,6 +285,6 @@ def do_register(conf):
subprocess.check_call("/usr/sbin/slapos-start")
except CalledProcessError:
print "Error while trying to run /usr/sbin/slapos-start"
else
else:
print "Missing file /usr/sbin/slapos-start"
return 0
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