def get_dcs(config, scope): config.update({'scope': scope, 'patronictl': True}) config.setdefault('name', scope) try: return _get_dcs(config) except PatroniException as e: raise PatroniCtlException(str(e))
def get_dcs(config, scope): config.update({'scope': scope, 'patronictl': True}) config.setdefault('name', scope) try: return _get_dcs(config) except PatroniException as e: raise PatroniCtlException(str(e))
def get_dcs(config, scope): config.setdefault('scope', scope) config.setdefault('name', scope) try: return _get_dcs(config) except PatroniException as e: raise PatroniCtlException(str(e))
def get_dcs(config, scope): config['scope'] = scope config.setdefault('name', scope) try: return _get_dcs(config) except PatroniException as e: raise PatroniCtlException(str(e))