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)
if retflag:
if retdata:
retcode = 200
retdata = {
'name': vm,
'data': retdata
}
else:
retcode = 404
retdata = {
'message': 'VM not found.'
}
retcode = 200
retdata = {
'name': vm,
'data': retdata
}
else:
retcode = 400
retdata = {