Just return an empty log

This commit is contained in:
Joshua Boniface 2020-01-05 17:06:14 -05:00
parent bde0bd6238
commit cfb5862cf0
1 changed files with 5 additions and 11 deletions

View File

@ -358,17 +358,11 @@ def vm_console(vm, lines=None):
pvc_common.stopZKConnection(zk_conn) pvc_common.stopZKConnection(zk_conn)
if retflag: if retflag:
if retdata:
retcode = 200 retcode = 200
retdata = { retdata = {
'name': vm, 'name': vm,
'data': retdata 'data': retdata
} }
else:
retcode = 404
retdata = {
'message': 'VM not found.'
}
else: else:
retcode = 400 retcode = 400
retdata = { retdata = {