aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBryn M. Reeves <bmr@redhat.com>2014-03-11 15:27:31 +0000
committerBryn M. Reeves <bmr@redhat.com>2014-03-11 15:27:31 +0000
commit877f93bcd469b939ec044539b9ea4a0d33e9f177 (patch)
tree3eb4d306204d522e056c64a74d7e19244874e79b
parenta66d4fccfe093dfa29dfaa4808f361bc7063c742 (diff)
downloadsos-877f93bcd469b939ec044539b9ea4a0d33e9f177.tar.gz
Fix remaining use of obsolete 'get_cmd_dir()' in plugins
The get_cmd_dir() method was renamed to get_cmd_path(). Fix the two remaining uses in yum and cluster plugins. Signed-off-by: Bryn M. Reeves <bmr@redhat.com>
-rw-r--r--sos/plugins/cluster.py2
-rw-r--r--sos/plugins/yum.py2
2 files changed, 2 insertions, 2 deletions
diff --git a/sos/plugins/cluster.py b/sos/plugins/cluster.py
index 8d73dc1d..79574988 100644
--- a/sos/plugins/cluster.py
+++ b/sos/plugins/cluster.py
@@ -97,7 +97,7 @@ class Cluster(Plugin, RedHatPlugin):
"crm_from parameter '%s' is not a valid date: using default"
% self.get_option('crm_from'))
- crm_dest = os.path.join(self.get_cmd_dir(), 'crm_report')
+ crm_dest = os.path.join(self.get_cmd_path(), 'crm_report')
self.add_cmd_output('crm_report -S -d --dest %s --from "%s"'
% (crm_dest, crm_from))
diff --git a/sos/plugins/yum.py b/sos/plugins/yum.py
index 81788f17..aa8cb186 100644
--- a/sos/plugins/yum.py
+++ b/sos/plugins/yum.py
@@ -49,7 +49,7 @@ class Yum(Plugin, RedHatPlugin):
self.add_cmd_output("subscription-manager list --installed")
self.add_cmd_output("subscription-manager list --consumed")
self.add_cmd_output("rhsm-debug system --no-archive --destination %s"
- % self.get_cmd_dir())
+ % self.get_cmd_path())
if self.get_option("yumlist"):
# List various information about available packages