We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 70c6231 + 9e6b8f9 commit 2135292Copy full SHA for 2135292
ras/sosreport.py
@@ -58,7 +58,7 @@ def setUp(self):
58
elif dist.name in ['rhel', 'centos', 'fedora']:
59
sos_pkg = 'sos'
60
self.sos_cmd = "sos report"
61
- if dist.name == "rhel" and dist.version <= "7" and dist.release <= "4":
+ if dist.name == "rhel" and int(dist.version) <= 7 and int(dist.release) <= 4:
62
self.sos_cmd = "sosreport"
63
else:
64
self.cancel("sosreport is not supported on %s" % dist.name)
0 commit comments