diff options
Diffstat (limited to 'ipalib/cli.py')
-rw-r--r-- | ipalib/cli.py | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/ipalib/cli.py b/ipalib/cli.py index d8c4b8058..0cd51a88e 100644 --- a/ipalib/cli.py +++ b/ipalib/cli.py @@ -145,7 +145,11 @@ class textui(backend.Backend): if it is a python str type, otherwise it is a plain string. """ if type(value) is str: - return base64.b64encode(value) + try: + int(value) + return value + except ValueError: + return base64.b64encode(value) else: return value |