Return an empty log if the value is None
This commit is contained in:
parent
5ffabcfef5
commit
c0c9327a7d
|
@ -791,6 +791,9 @@ def get_console_log(zkhandler, domain, lines=1000):
|
|||
# Get the data from ZK
|
||||
console_log = zkhandler.read(('domain.log.console', dom_uuid))
|
||||
|
||||
if console_log is None:
|
||||
return True, ''
|
||||
|
||||
# Shrink the log buffer to length lines
|
||||
shrunk_log = console_log.split('\n')[-lines:]
|
||||
loglines = '\n'.join(shrunk_log)
|
||||
|
|
Loading…
Reference in New Issue