Merge "Fix bug 948611. Fix 'nova-manage logs errors'"

This commit is contained in:
Jenkins 2012-03-07 07:43:19 +00:00 committed by Gerrit Code Review
commit f5f5ad427a

View File

@ -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)