From 71a0e6380047600c689ffd960f8ca5a0ed534c91 Mon Sep 17 00:00:00 2001 From: jbjohnso Date: Tue, 22 Apr 2014 16:38:09 -0400 Subject: [PATCH] Fix configmanager to tolerate string/unicode argument instead of list/tuple/whatever --- confluent/config/configmanager.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/confluent/config/configmanager.py b/confluent/config/configmanager.py index 3a80ce40..1bd82ec0 100644 --- a/confluent/config/configmanager.py +++ b/confluent/config/configmanager.py @@ -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: