Merge "Fix bug 948611. Fix 'nova-manage logs errors'"
This commit is contained in:
commit
f5f5ad427a
@ -2165,8 +2165,8 @@ class GetLogCommands(object):
|
||||
|
||||
def errors(self):
|
||||
"""Get all of the errors from the log files"""
|
||||
error_found = 0
|
||||
if FLAGS.logdir:
|
||||
error_found = 0
|
||||
logs = [x for x in os.listdir(FLAGS.logdir) if x.endswith('.log')]
|
||||
for file in logs:
|
||||
log_file = os.path.join(FLAGS.logdir, file)
|
||||
|
Loading…
x
Reference in New Issue
Block a user