Skip to content

Commit 4c0e92d

Browse files
committed
Suppress CLI STDOUT for the service unless explicityly enabled
Signed-off-by: Graham Weldon <graham@grahamweldon.com>
1 parent 8d57970 commit 4c0e92d

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

scaffolding-chef-inspec/lib/scaffolding.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -198,7 +198,7 @@ function Invoke-DefaultInstall {
198198
"target_id": "{{ sys.member_id }}",
199199
"reporter": {
200200
"cli": {
201-
"stdout": true
201+
{{#if cfg.cli.stdout}}"stdout": true{{/if}}
202202
}{{#if cfg.output.json}},
203203
"json" : {
204204
"file" : "c:/hab/svc/$pkg_name/results.json",

scaffolding-chef-inspec/lib/scaffolding.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -220,7 +220,7 @@ EOF
220220
"target_id": "{{ sys.member_id }}",
221221
"reporter": {
222222
"cli": {
223-
"stdout": true
223+
{{#if cfg.cli.stdout}}"stdout": true{{/if}}
224224
}{{#if cfg.output.json}},
225225
"json" : {
226226
"file" : "{{pkg.svc_path}}/results.json",

0 commit comments

Comments
 (0)