def __init__(self, conf_file, splunkd_uri, session_key, appname=None): if appname is None: appname = utils.get_appname_from_path(op.abspath(__file__)) self._conf_file = conf.conf_file2name(conf_file) self._conf_mgr = conf.ConfManager(splunkd_uri, session_key, app_name=appname) self._cred_mgr = cred.CredentialManager( splunkd_uri, session_key, app=appname, owner="nobody", realm=appname ) self._keys = None
def __init__(self, conf_file, splunkd_uri, session_key, appname=None): if appname is None: appname = utils.get_appname_from_path(op.abspath(__file__)) self._conf_file = conf.conf_file2name(conf_file) self._conf_mgr = conf.ConfManager(splunkd_uri, session_key, app_name=appname) self._cred_mgr = cred.CredentialManager( splunkd_uri, session_key, app=appname, owner="nobody", realm=appname) self._keys = None
def set_conf_file(self, conf_file): self._conf_file = conf.conf_file2name(conf_file)