summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--ipaserver/install/bindinstance.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/ipaserver/install/bindinstance.py b/ipaserver/install/bindinstance.py
index 16894de0a..5bf784e62 100644
--- a/ipaserver/install/bindinstance.py
+++ b/ipaserver/install/bindinstance.py
@@ -403,6 +403,8 @@ def zonemgr_callback(option, opt_str, value, parser):
"""
# validate the value first
try:
+ # IDNA support requires unicode
+ value = value.decode(sys.stdin.encoding)
validate_zonemgr_str(value)
except ValueError, e:
parser.error("invalid zonemgr: " + unicode(e))