summaryrefslogtreecommitdiffstats
path: root/isys
diff options
context:
space:
mode:
authorJoel Andres Granados <joel@dhcp-lab-115.englab.brq.redhat.com>2007-11-06 19:32:36 +0100
committerChris Lumens <clumens@redhat.com>2008-08-06 11:45:41 -0400
commit42871fd5f1f61d00c39300a2daba6c9140657af4 (patch)
treeba16c457b6cfcf87a60736ce44a7fb202aea3c16 /isys
parentff20c0cbd015c3c181d96fdf0b4db5c0da0c5542 (diff)
downloadanaconda-42871fd5f1f61d00c39300a2daba6c9140657af4.tar.gz
anaconda-42871fd5f1f61d00c39300a2daba6c9140657af4.tar.xz
anaconda-42871fd5f1f61d00c39300a2daba6c9140657af4.zip
Allow float comparison between nic names in isys.py. (#246135)
Diffstat (limited to 'isys')
-rwxr-xr-xisys/isys.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/isys/isys.py b/isys/isys.py
index db8c3e2f0..f18431d39 100755
--- a/isys/isys.py
+++ b/isys/isys.py
@@ -697,8 +697,8 @@ def compareDrives(first, second):
def compareNetDevices(first, second):
try:
- trimmed_first = int(first.lstrip(string.letters))
- trimmed_second = int(second.lstrip(string.letters))
+ trimmed_first = float(first.lstrip(string.letters))
+ trimmed_second = float(second.lstrip(string.letters))
except:
return 0