Just return an empty log
This commit is contained in:
parent
bde0bd6238
commit
cfb5862cf0
|
@ -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 = {
|
||||
|
|
Loading…
Reference in New Issue