Skip to content

Commit ef6a0e7

Browse files
author
Nelson Wang
committed
Fixing errors with new 8.1.x splunk packages
1 parent a32600e commit ef6a0e7

File tree

1 file changed

+9
-8
lines changed

1 file changed

+9
-8
lines changed

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

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@
99
*/bin/*mongo*
1010
*/3rdparty/Copyright-for-mongo*
1111
*/bin/node*
12-
*/bin/parsetest*
1312
*/bin/pcregextest*
1413
*/etc/*.lic*
1514
*/etc/anonymizer*
@@ -34,13 +33,15 @@
3433
m = re.match(".*splunk-([0-9]+)\.([0-9]+)\.[0-9]+\.?[0-9]?-[0-9a-z]+-Linux-[0-9a-z_-]+.tgz", sys.argv[1])
3534

3635
if m and m.group(1):
37-
if m.group(1) == "7":
38-
print EXCLUDE_V7
36+
print(EXCLUDE_V7)
37+
if int(m.group(1)) == 7:
38+
print("*/bin/parsetest*")
3939
if int(m.group(2)) < 3:
40-
print "*/etc/apps/framework*"
41-
print "*/etc/apps/gettingstarted*"
40+
print("*/etc/apps/framework*")
41+
print("*/etc/apps/gettingstarted*")
4242
else:
43-
print "*/etc/apps/splunk_metrics_workspace*"
43+
print("*/etc/apps/splunk_metrics_workspace*")
4444
elif int(m.group(1)) > 7:
45-
print EXCLUDE_V7
46-
print "*/etc/apps/splunk_metrics_workspace*"
45+
print("*/etc/apps/splunk_metrics_workspace*")
46+
if int(m.group(2)) < 1:
47+
print("*/bin/parsetest*")

0 commit comments

Comments
 (0)