|
|
629484 |
From 50c2821c6211a06ee356d4d8d2f0e7573e1a8159 Mon Sep 17 00:00:00 2001
|
|
|
629484 |
From: "Bryn M. Reeves" <bmr@redhat.com>
|
|
|
629484 |
Date: Mon, 3 Feb 2014 11:48:46 +0000
|
|
|
629484 |
Subject: [PATCH] Fix get_option() use in cluster plugin
|
|
|
629484 |
|
|
|
629484 |
Signed-off-by: Bryn M. Reeves <bmr@redhat.com>
|
|
|
629484 |
---
|
|
|
629484 |
sos/plugins/cluster.py | 6 +++---
|
|
|
629484 |
1 file changed, 3 insertions(+), 3 deletions(-)
|
|
|
629484 |
|
|
|
629484 |
diff --git a/sos/plugins/cluster.py b/sos/plugins/cluster.py
|
|
|
629484 |
index 0fc4ded..eeacdab 100644
|
|
|
629484 |
--- a/sos/plugins/cluster.py
|
|
|
629484 |
+++ b/sos/plugins/cluster.py
|
|
|
629484 |
@@ -90,11 +90,11 @@ class Cluster(Plugin, RedHatPlugin):
|
|
|
629484 |
- timedelta(hours=72)).strftime("%Y-%m-%d %H:%m:%S")
|
|
|
629484 |
if self.get_option('crm_from') != False:
|
|
|
629484 |
if re.match(r'\d{4}-\d{2}-\d{2} \d{2}:\d{2}:\d{2}',
|
|
|
629484 |
- str(self.getOption('crm_from'))):
|
|
|
629484 |
- crm_from = self.getOption('crm_from')
|
|
|
629484 |
+ str(self.get_option('crm_from'))):
|
|
|
629484 |
+ crm_from = self.get_option('crm_from')
|
|
|
629484 |
else:
|
|
|
629484 |
self.soslog.error("crm_from parameter '%s' is not a valid date"
|
|
|
629484 |
- % self.getOption('crm_from'))
|
|
|
629484 |
+ % self.get_option('crm_from'))
|
|
|
629484 |
|
|
|
629484 |
crm_dest = os.path.join(self.get_cmd_dir(), 'crm_report')
|
|
|
629484 |
self.add_cmd_output('crm_report -S -d --dest %s --from "%s"'
|
|
|
629484 |
--
|
|
|
629484 |
1.7.11.7
|
|
|
629484 |
|