def get_service_by_name(session, cluster_id, name): logger.debug('Looking for name:[{}] in cluster_id:[{}]'.format(name, cluster_id)) return _service(session, cluster_id).\ filter(Service.name==name).\ one()
def get_service_by_name(session, cluster_id, name): logger.debug('Looking for name:[{}] in cluster_id:[{}]'.format( name, cluster_id)) return _service(session, cluster_id).\ filter(Service.name==name).\ one()
def _get_service_by_impl_name(session, cluster_id, impl_name): logger.debug('Looking for impl_name:[{}] in cluster_id:[{}]'.format(impl_name, cluster_id)) return _service(session, cluster_id).\ filter(Service.impl_name==impl_name).\ one()