@@ -63,24 +63,12 @@ def msp(*args, **kwargs):
6363 "get_conf_key_value" ,
6464 "get_conf_stanza" ,
6565 "get_conf_stanzas" ,
66- "_get_conf_stanzas_from_splunk_api" ,
6766]
6867
6968ETC_LEAF = "etc"
7069APP_SYSTEM = "system"
7170APP_HEC = "splunk_httpinput"
7271
73- # See validateSearchHeadPooling() in src/libbundle/ConfSettings.cpp
74- on_shared_storage = [
75- os .path .join (ETC_LEAF , "apps" ),
76- os .path .join (ETC_LEAF , "users" ),
77- os .path .join ("var" , "run" , "splunk" , "dispatch" ),
78- os .path .join ("var" , "run" , "splunk" , "srtemp" ),
79- os .path .join ("var" , "run" , "splunk" , "rss" ),
80- os .path .join ("var" , "run" , "splunk" , "scheduler" ),
81- os .path .join ("var" , "run" , "splunk" , "lookup_tmp" ),
82- ]
83-
8472
8573class SessionKeyNotFound (Exception ):
8674 pass
@@ -409,7 +397,11 @@ def _get_conf_stanzas_from_splunk_api(
409397 session_key = getattr (__main__ , "___sessionKey" )
410398
411399 if not session_key :
412- raise SessionKeyNotFound ()
400+ raise SessionKeyNotFound (
401+ "Session key is missing. If you are using 'splunkenv' module in your TA, please ensure you are "
402+ "providing session_key to it's functions. For more information "
403+ "please see: https://splunk.github.io/addonfactory-solutions-library-python/release_7_0_0/"
404+ )
413405
414406 server_response , server_content = simpleRequest (
415407 url ,
0 commit comments