def update_checks(self, check_configs):
for check_name, check_config in six.iteritems(check_configs):<EOL><INDENT>if check_name == "<STR_LIT>":<EOL><INDENT>continue<EOL><DEDENT>for port in self.ports:<EOL><INDENT>try:<EOL><INDENT>check = Check.from_config(check_name, check_config)<EOL>check.host = self.host<EOL>check.port = port<EOL>self.checks[port][check_name] = check<EOL><DEDENT>except ValueError as e:<EOL><INDENT>logger.error(<EOL>"<STR_LIT>",<EOL>check_name, self.name, str(e)<EOL>)<EOL>continue<EOL><DEDENT><DEDENT><DEDENT>
Maintains the values in the `checks` attribute's dictionary.  Each
key in the dictionary is a port, and each value is a nested dictionary
mapping each check's name to the Check instance.

This method makes sure the attribute reflects all of the properly
configured checks and ports.  Removing no-longer-configured ports
is left to the `run_checks` method.