diff options
author | Martin Nagy <mnagy@redhat.com> | 2010-04-15 11:59:16 +0200 |
---|---|---|
committer | Rob Crittenden <rcritten@redhat.com> | 2010-04-23 17:19:28 -0400 |
commit | 1340875165150144aba07f89df9e39b5ecb43832 (patch) | |
tree | a34b445a661154adb12c4f617715d139dc069e3c /ipapython | |
parent | ba85312bf1304d20f4199038bcf4a3f900dad7cf (diff) | |
download | freeipa.git-1340875165150144aba07f89df9e39b5ecb43832.tar.gz freeipa.git-1340875165150144aba07f89df9e39b5ecb43832.tar.xz freeipa.git-1340875165150144aba07f89df9e39b5ecb43832.zip |
Accept unicode for sysrestore
Diffstat (limited to 'ipapython')
-rw-r--r-- | ipapython/sysrestore.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ipapython/sysrestore.py b/ipapython/sysrestore.py index 78c9b628..ddc3ee05 100644 --- a/ipapython/sysrestore.py +++ b/ipapython/sysrestore.py @@ -282,8 +282,8 @@ class StateFile: by the string @key and with the value @value. @value may be a string or boolean. """ - if not (isinstance(value, str) or isinstance(value, bool)): - raise ValueError("Only strings or booleans supported") + if not isinstance(value, (str, bool, unicode)): + raise ValueError("Only strings, booleans or unicode strings are supported") if not self.modules.has_key(module): self.modules[module] = {} |