summaryrefslogtreecommitdiffstats
path: root/ipa-python/radius_util.py
diff options
context:
space:
mode:
Diffstat (limited to 'ipa-python/radius_util.py')
-rw-r--r--ipa-python/radius_util.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/ipa-python/radius_util.py b/ipa-python/radius_util.py
index fb3e581e..3d2e83e1 100644
--- a/ipa-python/radius_util.py
+++ b/ipa-python/radius_util.py
@@ -347,7 +347,7 @@ def validate_nastype(nastype, variable_name=None):
return True
def validate_desc(desc, variable_name=None):
- if ipavalidate.Plain(desc) != 0:
+ if not ipavalidate.Plain(desc):
print valid_desc_msg
return False
return True