summaryrefslogtreecommitdiff
path: root/lib/chef/mixin
diff options
context:
space:
mode:
authorJulien Huon <julien@huon.email>2019-12-25 15:23:51 +0100
committerJulien Huon <julien@huon.email>2019-12-25 15:23:51 +0100
commit43dc9ca5f4ff2daca950f42cfd7f2e16b5e8552c (patch)
tree610ffb8f99c6c6aeb3b305fc53bc1480bd75fd6a /lib/chef/mixin
parentafc883e252f6e158323e55892525fd4f7cb15bcc (diff)
downloadchef-43dc9ca5f4ff2daca950f42cfd7f2e16b5e8552c.tar.gz
Fix chefstyle errors
Signed-off-by: Julien Huon <julien@huon.email>
Diffstat (limited to 'lib/chef/mixin')
-rw-r--r--lib/chef/mixin/openssl_helper.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/chef/mixin/openssl_helper.rb b/lib/chef/mixin/openssl_helper.rb
index 28388453c5..7820635e37 100644
--- a/lib/chef/mixin/openssl_helper.rb
+++ b/lib/chef/mixin/openssl_helper.rb
@@ -408,8 +408,8 @@ class Chef
# @param [integer] renew_before_expiry number of days before expiration
# @return [true, false]
def cert_need_renewall?(cert_file, renew_before_expiry)
- raise TypeError, 'cert_file must be a String object' unless cert_file.is_a?(String)
- raise TypeError, 'renew_before_expiry must be a Integer object' unless renew_before_expiry.is_a?(Integer)
+ raise TypeError, "cert_file must be a String object" unless cert_file.is_a?(String)
+ raise TypeError, "renew_before_expiry must be a Integer object" unless renew_before_expiry.is_a?(Integer)
resp = true
cert_content = ::File.exist?(cert_file) ? File.read(cert_file) : cert_file