change api commands names

This commit is contained in:
deflax 2016-06-25 18:27:45 +03:00
parent ef8ddb0e17
commit 746d3a33d9
2 changed files with 10 additions and 10 deletions

View file

@ -155,5 +155,5 @@ def writeclientsdb(clientsdb):
if __name__ == '__main__':
setencpasswd('a@b.c', '123456')
setencpasswd('fqdn', '123456')

View file

@ -46,31 +46,31 @@ def selector(fn, req, vmid=0):
clientid = json['clientid']
body = clientsdb.checkin(clientid)
elif fn == 'create':
elif fn == 'vmcreate':
body = plugin.vmcreate(json)
elif fn == 'status':
elif fn == 'vmstatus':
body = plugin.vmstatus(vmid)
elif fn == 'delete':
elif fn == 'vmdelete':
body = plugin.vmdelete(vmid)
elif fn == 'suspend':
elif fn == 'vmsuspend':
body = plugin.vmsuspend(vmid)
elif fn == 'resume':
elif fn == 'vmresume':
body = plugin.vmresume(vmid)
elif fn == 'start':
elif fn == 'vmstart':
body = plugin.vmstart(vmid)
elif fn == 'shutdown':
elif fn == 'vmshutdown':
body = plugin.vmshutdown(vmid)
elif fn == 'stop':
elif fn == 'vmstop':
body = plugin.vmstop(vmid)
elif fn == 'vnc':
elif fn == 'vmvnc':
body = plugin.vmvnc(vmid)
except: