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
示例#2
0
 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
示例#3
0
 def set_conf_file(self, conf_file):
     self._conf_file = conf.conf_file2name(conf_file)
示例#4
0
 def set_conf_file(self, conf_file):
     self._conf_file = conf.conf_file2name(conf_file)