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

Add a --yes flag to bypass interactive prompt for vuls prepare #260

Closed
Code0x58 opened this issue Nov 13, 2016 · 0 comments
Closed

Add a --yes flag to bypass interactive prompt for vuls prepare #260

Code0x58 opened this issue Nov 13, 2016 · 0 comments

Comments

@Code0x58
Copy link
Contributor

Code0x58 commented Nov 13, 2016

This is needed to run vuls prepare in a non-interactive environment, e.g. if you run through the Docker image without using --interactive:

time="Nov 11 18:50:32" level=info msg="sudo ... OK" 
time="Nov 11 18:50:32" level=debug msg="SSHResult: servername: my-host, cmd: set -o pipefail; aptitude -h, exitstatus: 127, stdout: bash: aptitude: command not found\r\n, stderr: , err: %!s(<nil>)" 
time="Nov 11 18:50:32" level=info msg="Below servers are needed to install dependencies" 
time="Nov 11 18:50:32" level=info msg="  - aptitude on my-host" 
time="Nov 11 18:50:32" level=info msg="Is this ok to install dependencies on the servers? [y/N]" 
time="Nov 11 18:50:32" level=error msg="Failed to prepare: EOF"

This comes around from scan/serverapi.go; in this code the "Below servers are needed to install dependencies" message would be better as something like "The following servers require dependencies to be installed:".

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

2 participants