summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xbin/nova-manage2
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/nova-manage b/bin/nova-manage
index f43b8536a..234f9d45e 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)