def process_IN_MOVED_TO(self, event): 'process IN_MOVED_TO events' self.logger.debug('[Monitor4BNS]: process_IN_MOVED_TO') super(Monitor4BNS, self).process_default(event) snapshot = ensure_read_yaml(self.ins_file) self.update_bns_link(snapshot)
def process_IN_MOVED_TO(self, event): 'process IN_MOVED_TO events' self.logger.debug('Monitor4BNS::process_IN_MOVED_TO') super(Monitor4BNS, self).process_default(event) register_dir = self.container_base_path + '/' + 'register' self.notify_etcd_register(register_dir) snapshot = ensure_read_yaml(self.ins_file) self.update_bns_link(snapshot)
def __init__(self, snapshot_path, cluster='dev'): self._snapshot = ensure_read_yaml(snapshot_path) self._cluster = cluster
def __init__(self, snapshot_path): self._snapshot = ensure_read_yaml(snapshot_path)