Skip to content

Commit

Permalink
feat: Support repo specific matrix for splunk
Browse files Browse the repository at this point in the history
  • Loading branch information
rfaircloth-splunk committed Sep 10, 2021
1 parent a3eb63e commit f19ecfb
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions addonfactory_test_matrix_action/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,10 @@ def hasfeatures(features, section):


def _generateSupportedSplunk(args, path):
splunk_matrix = os.path.join(path, "splunk_matrix.conf")
if os.path.exists("splunk_matrix.conf"):
splunk_matrix="splunk_matrix.conf"
else:
splunk_matrix = os.path.join(path, "splunk_matrix.conf")
config = configparser.ConfigParser()
config.read(splunk_matrix)
supportedSplunk = []
Expand Down Expand Up @@ -87,7 +90,6 @@ def main():
parser = argparse.ArgumentParser(description="Determine support matrix")

parser.add_argument('--file', type=open, action=LoadFromFile)

parser.add_argument(
"--unsupportedSplunk",
action="store_true",
Expand Down

0 comments on commit f19ecfb

Please sign in to comment.