2
0
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:
jbjohnso 2014-04-22 16:38:09 -04:00
parent d269be6f8b
commit 71a0e63800

View File

@ -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: