Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Manage default value vs Match block #111

Open
juju4 opened this issue Sep 2, 2018 · 0 comments
Open

Manage default value vs Match block #111

juju4 opened this issue Sep 2, 2018 · 0 comments

Comments

@juju4
Copy link
Contributor

juju4 commented Sep 2, 2018

Currently if there are Match blocks containing an option, inspec will return an array

for example

�[0;32m        "\u001b[38;5;9m  ×  sshd-39: Server: Disable TCP forwarding", �[0m
�[0;32m        "\u001b[38;5;9m     ×  SSHD Configuration AllowTcpForwarding should eq \"no\"", �[0m
�[0;32m        "     ", �[0m
�[0;32m        "     expected: \"no\"", �[0m
�[0;32m        "          got: [\"no\", \"yes\", \"no\", \"no\", \"yes\", \"no\"]", �[0m

ideally it should be possible to match default config value (the one outside of any Match block or inside a 'Match all') and the one per Match rule string.

tested on 2.2.78-1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant