def _get_svc(rcd, service_status):
    ena = None
    lines = __salt__['cmd.run']('{0} rcvar'.format(rcd)).splitlines()
    for rcvar in lines:
        if rcvar.startswith('$') and '={0}'.format(service_status) in rcvar:
            ena = 'yes'
        elif rcvar.startswith('#'):
            svc = rcvar.split(' ', 1)[1]
        else:
            continue

    if ena and svc:
        return svc
    return None
Refreshes the API Query Response.
dataset/ETHPy150Open saltstack/salt/salt/modules/netbsdservice.py/_get_svc--crossover with--dataset/ETHPy150Open googleanalytics/google-analytics-super-proxy/src/controllers/owner.py/RunQueryHandler.post