summaryrefslogtreecommitdiffstats
path: root/ipalib/cli.py
diff options
context:
space:
mode:
authorRob Crittenden <rcritten@redhat.com>2010-02-17 10:32:23 -0500
committerJason Gerard DeRose <jderose@redhat.com>2010-02-17 09:13:50 -0700
commit63b55307e50b770bd24fa0a2c19926d3660dc98b (patch)
tree283d9974f366943cb55a84581efff2fade662921 /ipalib/cli.py
parentc0c86232f4fb0156f180c02a3ae538df0eb31b58 (diff)
downloadfreeipa-63b55307e50b770bd24fa0a2c19926d3660dc98b.tar.gz
freeipa-63b55307e50b770bd24fa0a2c19926d3660dc98b.tar.xz
freeipa-63b55307e50b770bd24fa0a2c19926d3660dc98b.zip
Reverse patch to not encode int values, handled at OID level properly now.
Diffstat (limited to 'ipalib/cli.py')
-rw-r--r--ipalib/cli.py6
1 files changed, 1 insertions, 5 deletions
diff --git a/ipalib/cli.py b/ipalib/cli.py
index b03af3b93..4fcd49a37 100644
--- a/ipalib/cli.py
+++ b/ipalib/cli.py
@@ -145,11 +145,7 @@ class textui(backend.Backend):
if it is a python str type, otherwise it is a plain string.
"""
if type(value) is str:
- try:
- int(value)
- return value
- except ValueError:
- return base64.b64encode(value)
+ return base64.b64encode(value)
else:
return value