def _session():

    config = __salt__['config.option']('zenoss')
    session = requests.session()
    session.auth = (config.get('username'), config.get('password'))
    session.verify = False
    session.headers.update({'Content-type': 'application/json; charset=utf-8'})
    return session
Create a session to be used when connecting to Zenoss.
dataset/ETHPy150Open saltstack/salt/salt/modules/zenoss.py/_session