-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
use a stricter comparison so knife ssh only fails if --exit-on-error #6582
use a stricter comparison so knife ssh only fails if --exit-on-error #6582
Conversation
--exit-on-error Signed-off-by: Sarkis Varozian <svarozian@gmail.com>
That whole option seems like something is very wrong. It's declared as a boolean type but in some places we expect a symbol. And the |
@coderanger thanks for taking a look - I did test and make sure this new way of doing it is working right.. the one thing I didn't test is if it encounters an ssh connection error - trying to get that tested now. |
Signed-off-by: Sarkis Varozian <svarozian@gmail.com>
I was able to successfully test all edge cases I could think of here - including testing ssh connection issues to one of the servers returned in the knife ssh query. |
were we trying too hard to be backcompat at some point and only half converted it from boolean to a multi-valued symbol? |
@lamont-granquist The other way around. It started as multi-value config that was really only used when calling this plugin from other plugins like this: https://github.com/chef/chef/blob/master/lib/chef/knife/bootstrap.rb#L451 I'm in favor of moving it to a boolean if we don't think anyone else is using it. If we do move it to a boolean, lets fixup the usage in bootstrap above as well. |
Signed-off-by: Sarkis Varozian <svarozian@gmail.com>
Since this was set to |
Constantly running into this and having to remember to add |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@sarkis thanks for your contribution! |
This thread has been automatically locked because it has not had recent activity. Please open a new issue for related bugs and link to relevant comments in this thread. |
Description
This is required due to config[:on_error] being set here:
chef/lib/chef/knife/ssh.rb
Line 134 in 93fe1ac
Issues Resolved
#6581
Check List