vmcreate phase 3
This commit is contained in:
parent
8dd867dc15
commit
48af0fbc50
1 changed files with 2 additions and 2 deletions
|
@ -70,8 +70,8 @@ def vmcreate(req):
|
|||
vm_id = random.randint(1000, 9999)
|
||||
cubeid = int(time.time() * 10000 * 10000)
|
||||
deploy = { 'cube': int(cubeid),
|
||||
'type': req['type'],
|
||||
'clientid': req['clientid'],
|
||||
'clientname': req['clientname'],
|
||||
'clientemail': req['clientemail'],
|
||||
'hostname': vm_name,
|
||||
'region': region_fullname,
|
||||
|
@ -83,7 +83,7 @@ def vmcreate(req):
|
|||
}
|
||||
proxobject = auth(slave_name)
|
||||
real_slave_name = proxobject.cluster.status.get()[0]['name']
|
||||
description = vm_name + ' (' + str(cubeid) + '/' + str(vm_id) + ')\n' + 'owned by ' + req['clientname'] + ' (' + req['clientid'] + ')\n'
|
||||
description = vm_name + ' (' + str(cubeid) + '/' + str(vm_id) + ')\n' + 'owned by ' + req['clientemail'] + ' (' + req['clientid'] + ')\n'
|
||||
|
||||
if req['type'] == 'kvm':
|
||||
#create partition
|
||||
|
|
Loading…
Reference in a new issue