File tree Expand file tree Collapse file tree 2 files changed +9
-5
lines changed Expand file tree Collapse file tree 2 files changed +9
-5
lines changed Original file line number Diff line number Diff line change 1
1
{
2
2
"github_ips_only" : false ,
3
3
"enforce_secret" : " " ,
4
+ "return_scripts_info" : true
4
5
}
Original file line number Diff line number Diff line change @@ -98,6 +98,7 @@ def index():
98
98
]
99
99
100
100
# Run scripts
101
+ silent = config .get (return_scripts_info , False )
101
102
ran = {}
102
103
for s in scripts :
103
104
if isfile (s ) and access (s , X_OK ):
@@ -107,11 +108,13 @@ def index():
107
108
stdout = PIPE , stderr = PIPE
108
109
)
109
110
stdout , stderr = cmd .communicate ()
110
- ran [basename (s )] = {
111
- 'returncode' : returncode ,
112
- 'stdout' : stdout ,
113
- 'stderr' : stderr ,
114
- }
111
+
112
+ if not silent :
113
+ ran [basename (s )] = {
114
+ 'returncode' : cmd .returncode ,
115
+ 'stdout' : stdout ,
116
+ 'stderr' : stderr ,
117
+ }
115
118
116
119
return ran
117
120
You can’t perform that action at this time.
0 commit comments