-
Notifications
You must be signed in to change notification settings - Fork 449
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
Avoid constant warnings in windows/filesystem plugin #1360
Conversation
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.
Plain feedback. I don't feel like I'm in a position to request changes on this one. Anything that cleans up the warnings is better than the current situation of the rspec output.
@@ -24,7 +24,7 @@ | |||
# @see https://docs.microsoft.com/en-us/windows/desktop/SecProv/getconversionstatus-win32-encryptablevolume#parameters | |||
# | |||
CONVERSION_STATUS = %w{FullyDecrypted FullyEncrypted EncryptionInProgress | |||
DecryptionInProgress EncryptionPaused DecryptionPaused}.freeze | |||
DecryptionInProgress EncryptionPaused DecryptionPaused}.freeze unless defined?(CONVERSION_STATUS) |
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.
- I feel like this is a bandaid that hides a problem in
plugin.rb
(NamedPlugin.plugin
is where this seems to be coming from). - You can change that to
||=
instead ofunless defined?
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.
I updated this to improve our bandaid to use ||= everywhere
This is very noisy in DK specs. Signed-off-by: Tim Smith <tsmith@chef.io>
This is a lot easier to read. Signed-off-by: Tim Smith <tsmith@chef.io>
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
This is very noisy in DK specs.
Signed-off-by: Tim Smith tsmith@chef.io