mirror of
https://github.com/xcat2/confluent.git
synced 2024-11-22 01:22:00 +00:00
Fix configmanager to tolerate string/unicode argument instead of list/tuple/whatever
This commit is contained in:
parent
d269be6f8b
commit
71a0e63800
@ -800,6 +800,8 @@ class ConfigManager(object):
|
||||
|
||||
def clear_group_attributes(self, groups, attributes):
|
||||
changeset = {}
|
||||
if type(groups) in (str, unicode):
|
||||
groups = (groups,)
|
||||
for group in groups:
|
||||
group = group.encode('utf-8')
|
||||
try:
|
||||
|
Loading…
Reference in New Issue
Block a user