Skip to content
This repository has been archived by the owner on Aug 16, 2024. It is now read-only.

add "skip_message"results field to database #148

Open
ejaronne opened this issue Aug 19, 2020 · 0 comments
Open

add "skip_message"results field to database #148

ejaronne opened this issue Aug 19, 2020 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@ejaronne
Copy link
Contributor

to accommodate older InSpec profiles lacking in good coding practices.

e.g., if the control code logic simply is: "only_if { false }", then the output could look like this:

      "results": [
        {
          "status": "skipped",
          "code_desc": "Operating System Detection",
          "run_time": 0.000051034,
          "start_time": "2020-08-18T23:47:40-04:00",
          "resource": "Operating System Detection",
          "skip_message": "Skipped control due to only_if condition."
        }

Otherwise, the results won't load, stating error "There are no evaluations in this file"

@robthew robthew mentioned this issue Aug 19, 2020
@aaronlippold aaronlippold assigned rbclark and Bialogs and unassigned robthew Nov 12, 2020
@aaronlippold aaronlippold added the bug Something isn't working label Nov 12, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

5 participants