diff options
author | Bryn M. Reeves <bmr@redhat.com> | 2013-10-29 16:03:03 +0000 |
---|---|---|
committer | Bryn M. Reeves <bmr@redhat.com> | 2013-10-29 16:03:03 +0000 |
commit | cb95bc4059dc7e3c88071934c936c387f1829460 (patch) | |
tree | 16545e408300a8ff61163f54240a7c329967e2b6 | |
parent | ebebbf15e7548e687af043e56e5fa9a81589fd07 (diff) | |
download | sos-cb95bc4059dc7e3c88071934c936c387f1829460.tar.gz |
Remove version checks in gluster plug-in
Current distributions do not include the legac package versions
that the plug-in was checking for.
Signed-off-by: Bryn M. Reeves <bmr@redhat.com>
-rw-r--r-- | sos/plugins/gluster.py | 18 |
1 files changed, 2 insertions, 16 deletions
diff --git a/sos/plugins/gluster.py b/sos/plugins/gluster.py index a535d797..7c54fa09 100644 --- a/sos/plugins/gluster.py +++ b/sos/plugins/gluster.py @@ -80,22 +80,8 @@ class Gluster(Plugin, RedHatPlugin): def setup(self): self.add_cmd_output("gluster peer status") - # check package version handling rename of glusterfs-core -> glusterfs - pkg = self.policy().pkg_by_name("glusterfs-core"); - if not pkg: - pkg = self.policy().pkg_by_name("glusterfs"); - # need to handle "no package" case for users who enable with -e/-o - if not pkg: - return - - gluster_major = int((pkg["version"])[:1]) - gluster_minor = int((pkg["version"])[2:3]) - if (gluster_major == 3) and (gluster_minor <= 2): - self.add_copy_spec("/etc/glusterd/") - self.add_forbidden_path("/etc/glusterd/geo-replication/secret.pem") - else: - self.add_copy_spec("/var/lib/glusterd/") - self.add_forbidden_path("/var/lib/glusterd/geo-replication/secret.pem") + self.add_copy_spec("/var/lib/glusterd/") + self.add_forbidden_path("/var/lib/glusterd/geo-replication/secret.pem") # collect unified file and object storage configuration self.add_copy_spec("/etc/swift/") |