def __init__(self, opts, **kwargs):
    self.opts = opts
    self.ttype = 'zeromq'
    self.crypt = (kwargs['crypt'] if ('crypt' in kwargs) else 'aes')
    self.serial = salt.payload.Serial(opts)
    if (self.crypt != 'clear'):
        if ('auth' in kwargs):
            self.auth = kwargs['auth']
        else:
            self.auth = salt.crypt.SAuth(opts)
    if ('master_uri' in kwargs):
        master_uri = kwargs['master_uri']
    else:
        master_uri = opts['master_uri']
    self.sreq = salt.payload.SREQ(master_uri)
def __init__(self, opts, **kwargs):
    self.opts = opts
    self.ttype = 'zeromq'
    self.crypt = (kwargs['crypt'] if ('crypt' in kwargs) else 'aes')
    self.serial = salt.payload.Serial(opts)
    if (self.crypt != 'clear'):
        if ('auth' in kwargs):
            self.auth = kwargs['auth']
        else:
            self.auth = salt.crypt.SAuth(opts)
    if ('master_uri' in kwargs):
        master_uri = kwargs['master_uri']
    else:
        master_uri = opts['master_uri']
    self.sreq = salt.payload.SREQ(master_uri)