X-Git-Url: http://xvm.mit.edu/gitweb/invirt/packages/invirt-web.git/blobdiff_plain/5d070af36a7da6e1b25023ae96b30d66573343dc..08d9836a894fad232049e2adc59c131bc6dc1aaf:/templates/main.py diff --git a/templates/main.py b/templates/main.py index 74a6116..ec1eca5 100755 --- a/templates/main.py +++ b/templates/main.py @@ -176,7 +176,7 @@ def remctl(*args, **kws): p.wait() return p.stdout.read(), p.stderr.read() if p.wait(): - print >> sys.stderr, 'Error on remctl %s:' % args + print >> sys.stderr, 'Error on remctl', args, ':' print >> sys.stderr, p.stderr.read() raise CodeError('ERROR on remctl') return p.stdout.read() @@ -295,6 +295,7 @@ def createVm(user, name, memory, disk, is_hvm, cdrom): machine.name = name machine.memory = memory machine.owner = user.username + machine.administrator = user.username machine.contact = user.email machine.uuid = uuidToString(randomUUID()) machine.boot_off_cd = True @@ -796,8 +797,6 @@ if __name__ == '__main__': u.email = 'nobody' connect('postgres://sipb-xen@sipb-xen-dev/sipb_xen') operation = os.environ.get('PATH_INFO', '') -# print 'Content-Type: text/plain\n' -# print operation if not operation: print "Status: 301 Moved Permanently" print 'Location: ' + os.environ['SCRIPT_NAME']+'/\n'