From 5f2a36cce77a9331e233ff96b7c909a6149c1bc8 Mon Sep 17 00:00:00 2001 From: Dan Prince Date: Tue, 19 Feb 2013 12:46:03 -0500 Subject: [PATCH] Update cinder-manage to use FLAGS.log_dir. We no longer use FLAGS.logdir. This commit updates cinder-manage to use the new FLAGS.log_dir option instead. Fixes LP Bug #1130258. Change-Id: Id5f1175ec83f0f0b677ab0d75b310fa054459319 --- bin/cinder-manage | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/bin/cinder-manage b/bin/cinder-manage index fd98d3382..8ee253af1 100755 --- a/bin/cinder-manage +++ b/bin/cinder-manage @@ -596,10 +596,10 @@ class GetLogCommands(object): def errors(self): """Get all of the errors from the log files.""" error_found = 0 - if FLAGS.logdir: - logs = [x for x in os.listdir(FLAGS.logdir) if x.endswith('.log')] + if FLAGS.log_dir: + logs = [x for x in os.listdir(FLAGS.log_dir) if x.endswith('.log')] for file in logs: - log_file = os.path.join(FLAGS.logdir, file) + log_file = os.path.join(FLAGS.log_dir, file) lines = [line.strip() for line in open(log_file, "r")] lines.reverse() print_name = 0 -- 2.45.2