@@ -50,6 +50,7 @@ def _generate_supported_splunk(args, path):
5050 "build" : props ["build" ],
5151 "islatest" : (config ["GENERAL" ]["LATEST" ] == section ),
5252 "isoldest" : (config ["GENERAL" ]["OLDEST" ] == section ),
53+ "isEpSupporting" : (config ["GENERAL" ]["EP_SUPPORTING" ] == section ),
5354 }
5455 )
5556 return supported_splunk
@@ -132,9 +133,6 @@ def main():
132133 path = os .path .join (Path (__file__ ).parent .parent , "config" )
133134
134135 supported_splunk = _generate_supported_splunk (args , path )
135- pprint .pprint (f"Supported Splunk versions: { json .dumps (supported_splunk )} " )
136- with open (os .environ ["GITHUB_OUTPUT" ], "a" ) as fh :
137- print (f"supportedSplunk={ json .dumps (supported_splunk )} " , file = fh )
138136
139137 for splunk in supported_splunk :
140138 if splunk ["islatest" ]:
@@ -143,6 +141,17 @@ def main():
143141 print (f"latestSplunk={ json .dumps ([splunk ])} " , file = fh )
144142 break
145143
144+ splunk_supporting_ep = next ((splunk for splunk in supported_splunk if splunk ["isEpSupporting" ]), None )
145+ if splunk_supporting_ep :
146+ pprint .pprint (f"EP Supporting Splunk version: { json .dumps (splunk_supporting_ep )} " )
147+ supported_splunk .remove (splunk_supporting_ep ) # do not pass this splunk version on the supported list
148+ with open (os .environ ["GITHUB_OUTPUT" ], "a" ) as fh :
149+ print (f"epSupportingSplunk={ json .dumps (splunk_supporting_ep )} " , file = fh )
150+
151+ pprint .pprint (f"Supported Splunk versions: { json .dumps (supported_splunk )} " )
152+ with open (os .environ ["GITHUB_OUTPUT" ], "a" ) as fh :
153+ print (f"supportedSplunk={ json .dumps (supported_splunk )} " , file = fh )
154+
146155 supported_sc4s = _generate_supported_sc4s (args , path )
147156 pprint .pprint (f"Supported SC4S versions: { json .dumps (supported_sc4s )} " )
148157 with open (os .environ ["GITHUB_OUTPUT" ], "a" ) as fh :
0 commit comments