From 61d49f9ddfcab9a25563fcd8f2bcc58272d7bc17 Mon Sep 17 00:00:00 2001 From: Joe Gordon Date: Tue, 6 Mar 2012 17:13:52 -0800 Subject: [PATCH] Fix bug 948611. Fix 'nova-manage logs errors' Change-Id: Ica0de2bebfbadbaede698ae0e9db9bff208c358c --- bin/nova-manage | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/nova-manage b/bin/nova-manage index 6289f1ba5774..6f4cde35ddc0 100755 --- a/bin/nova-manage +++ b/bin/nova-manage @@ -2147,8 +2147,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)