You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Ran inspec with the command: inspec shell -c "platform.params" --config test-config.json
It should ideally print the output to the file, but it does not obey the stdout: false of the config file.
Problem:
It still prints out on the screen and does not write to the file test_path/output-result.json.
Found while using inspec version: 5.22.9
Possible Solution
The text was updated successfully, but these errors were encountered:
Nik08
changed the title
Inspec shell's commandor alias -c option does not obey stdout false for reporter set using config file
Inspec shell's commandor alias -c option does not obey stdout: false reporter option set using config file
Jul 19, 2023
inspec shell is an interactive tool for debugging. -c option is also used to run single command string without launching the inspec shell which according to me also provided for debugging and as a user I will expect the output of the command should be shown on stdout, so as far as I understand this is expected behavior and not a bug.
Inspec shell
command
, alias-c
option does not obeystdout: false
for reporter set using config fileDescribe the problem
Created
test-config.json
as config file with reporter configuration likeRan inspec with the command:
inspec shell -c "platform.params" --config test-config.json
It should ideally print the output to the file, but it does not obey the
stdout: false
of the config file.Problem:
It still prints out on the screen and does not write to the file
test_path/output-result.json
.Found while using inspec version:
5.22.9
Possible Solution
The text was updated successfully, but these errors were encountered: