def __contains__(self, host):
        raise Exception('No valid implementation for this...') # XXX

#        assert isinstance(host, (Host, HostContainer))
#
#        if isinstance(host, HostContainer):
#            host = host._host
#        return host.__class__ in self.get_hosts()
Note: We override add_or_update because we also want to publish high level "value_change"
dataset/ETHPy150Open jonathanslenders/python-deployer/deployer/host_container.py/HostsContainer.__contains__--crossover with--dataset/ETHPy150Open StackStorm/st2/st2common/st2common/persistence/keyvalue.py/KeyValuePair.add_or_update