Skip to content

Commit 2135292

Browse files
Merge pull request avocado-framework-tests#2918 from Krishan-Saraswat/sos_report
Added type casting for Distro Version and Distro Release.
2 parents 70c6231 + 9e6b8f9 commit 2135292

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ras/sosreport.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ def setUp(self):
5858
elif dist.name in ['rhel', 'centos', 'fedora']:
5959
sos_pkg = 'sos'
6060
self.sos_cmd = "sos report"
61-
if dist.name == "rhel" and dist.version <= "7" and dist.release <= "4":
61+
if dist.name == "rhel" and int(dist.version) <= 7 and int(dist.release) <= 4:
6262
self.sos_cmd = "sosreport"
6363
else:
6464
self.cancel("sosreport is not supported on %s" % dist.name)

0 commit comments

Comments
 (0)