summaryrefslogtreecommitdiffstats
path: root/src/lib
diff options
context:
space:
mode:
authorSol Jerome <sol.jerome@gmail.com>2012-11-12 12:21:09 -0600
committerSol Jerome <sol.jerome@gmail.com>2012-11-12 12:21:09 -0600
commite110656667f96b6beb7e7b5a2407316678669bcc (patch)
tree994e6e3c7d48124d3d971adb88f8878d234b989b /src/lib
parentbfbec5ed0309d7e803d5e1c3bd959b0837008100 (diff)
downloadbcfg2-e110656667f96b6beb7e7b5a2407316678669bcc.tar.gz
bcfg2-e110656667f96b6beb7e7b5a2407316678669bcc.tar.bz2
bcfg2-e110656667f96b6beb7e7b5a2407316678669bcc.zip
SELinux: Fix string -> int conversion
Signed-off-by: Sol Jerome <sol.jerome@gmail.com>
Diffstat (limited to 'src/lib')
-rw-r--r--src/lib/Bcfg2/Client/Tools/SELinux.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/Bcfg2/Client/Tools/SELinux.py b/src/lib/Bcfg2/Client/Tools/SELinux.py
index 5ac96f999..fc47883c9 100644
--- a/src/lib/Bcfg2/Client/Tools/SELinux.py
+++ b/src/lib/Bcfg2/Client/Tools/SELinux.py
@@ -41,7 +41,7 @@ def netmask_itoa(netmask, proto="ipv4"):
size = 128
family = socket.AF_INET6
try:
- int(netmask)
+ netmask = int(netmask)
except ValueError:
return netmask