diff --git a/bin/nova-manage b/bin/nova-manage index f43b8536a5b8..234f9d45e52e 100755 --- a/bin/nova-manage +++ b/bin/nova-manage @@ -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)