mirror of
https://github.com/inspec/inspec
synced 2024-11-27 15:10:44 +00:00
6ed5379134
Running `inspec exec` with --sudo locally produces unintended results given that we cannot escalate local Ruby methods after we're already running. --sudo is meant to only be used with remote targets. We do not currently enforce that. This change will print an error for the user if they attempt to use --sudo with a local exec and exit non-zero. Signed-off-by: Adam Leff <adam@leff.co> |
||
---|---|---|
.. | ||
cookbooks/os_prepare | ||
functional | ||
integration/default | ||
resource | ||
unit | ||
docker_run.rb | ||
docker_test.rb | ||
helper.rb | ||
test-extra.yaml | ||
test.yaml |