def apply_config(self, config):
self.hosts = config["<STR_LIT>"]<EOL>old_base_path = self.base_path<EOL>self.base_path = config["<STR_LIT:path>"]<EOL>if not self.connected.is_set():<EOL><INDENT>return<EOL><DEDENT>logger.debug("<STR_LIT>", self.hosts)<EOL>self.client.set_hosts("<STR_LIT:U+002C>".join(self.hosts))<EOL>if old_base_path and old_base_path != self.base_path:<EOL><INDENT>logger.critical(<EOL>"<STR_LIT>" +<EOL>"<STR_LIT>" +<EOL>"<STR_LIT>"<EOL>)<EOL><DEDENT>
Takes the given config dictionary and sets the hosts and base_path
attributes.

If the kazoo client connection is established, its hosts list is
updated to the newly configured value.