Skip to content

Commit 5d5dd2c

Browse files
fixed variable name m as major_version;
1 parent a03e6b0 commit 5d5dd2c

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

splunk/common-files/make-minimal-exclude.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -30,18 +30,18 @@
3030
*/share/splunk/pdf*
3131
*mrsparkle*"""
3232

33-
m = re.match(".*splunk-([0-9]+)\.([0-9]+)\.[0-9]+\.?[0-9]?-[0-9a-z]+-Linux-[0-9a-z_-]+.tgz", sys.argv[1])
33+
major_version = re.match(".*splunk-([0-9]+)\.([0-9]+)\.[0-9]+\.?[0-9]?-[0-9a-z]+-Linux-[0-9a-z_-]+.tgz", sys.argv[1])
3434

35-
if m and m.group(1):
35+
if major_version and major_version.group(1):
3636
print(EXCLUDE_V7)
37-
if int(m.group(1)) == 7:
37+
if int(major_version.group(1)) == 7:
3838
print("*/bin/parsetest*")
39-
if int(m.group(2)) < 3:
39+
if int(major_version.group(2)) < 3:
4040
print("*/etc/apps/framework*")
4141
print("*/etc/apps/gettingstarted*")
4242
else:
4343
print("*/etc/apps/splunk_metrics_workspace*")
44-
elif 7 < int(m.group(1)) < 9:
44+
elif 7 < int(major_version.group(1)) < 9:
4545
print("*/etc/apps/splunk_metrics_workspace*")
46-
if int(m.group(2)) < 1:
46+
if int(major_version.group(2)) < 1:
4747
print("*/bin/parsetest*")

0 commit comments

Comments
 (0)