mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2025-02-25 18:55:28 -06:00
Accept unicode for sysrestore
This commit is contained in:
parent
ba85312bf1
commit
1340875165
@ -282,8 +282,8 @@ class StateFile:
|
|||||||
by the string @key and with the value @value. @value may be
|
by the string @key and with the value @value. @value may be
|
||||||
a string or boolean.
|
a string or boolean.
|
||||||
"""
|
"""
|
||||||
if not (isinstance(value, str) or isinstance(value, bool)):
|
if not isinstance(value, (str, bool, unicode)):
|
||||||
raise ValueError("Only strings or booleans supported")
|
raise ValueError("Only strings, booleans or unicode strings are supported")
|
||||||
|
|
||||||
if not self.modules.has_key(module):
|
if not self.modules.has_key(module):
|
||||||
self.modules[module] = {}
|
self.modules[module] = {}
|
||||||
|
Loading…
Reference in New Issue
Block a user