예제 #1
0
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))
예제 #2
0
파일: ctl.py 프로젝트: jberkus/patroni
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))
예제 #3
0
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))
예제 #4
0
파일: ctl.py 프로젝트: alkersan/patroni
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))