Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
bugfix: sudo-detection for target execution
When running `inspec exec` without the `target` option but against remote endpoints OR when executing it with the `localhost://` target AND having `--sudo` active it would abort the execution. `--target` is a helper to set the Train parameters for `backend`, `host`, `user`, `port`, and potentially `password`. The detection would fail on providing any of these separately without specifying `--target`. The same holds true for the `localhost` train backend or just `localhost://` target. This type of detection has since moved to Train. The driving reason was to have this very useful check for localhost vs sudo run for any type of inspec (or for that matter: train) execution. This PR depends on inspec/train#179 and the next release of train. Signed-off-by: Dominik Richter <dominik.richter@gmail.com>
- Loading branch information