summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim Smith <tsmith84@gmail.com>2020-06-04 17:07:22 -0700
committerTim Smith <tsmith84@gmail.com>2020-06-04 17:08:09 -0700
commit69d0710481a8d5d475a812a956b8493db918404f (patch)
tree1f979af3c1e4e9f0d4227b208d0371be6daae52e
parenta658e6a0247dbd5207d37c0316247f4a1a890e42 (diff)
downloadchef-69d0710481a8d5d475a812a956b8493db918404f.tar.gz
Make sure gpg_version is actually a version object
Signed-off-by: Tim Smith <tsmith@chef.io>
-rw-r--r--lib/chef/provider/zypper_repository.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/chef/provider/zypper_repository.rb b/lib/chef/provider/zypper_repository.rb
index d3c0fa25b7..5c0f1928eb 100644
--- a/lib/chef/provider/zypper_repository.rb
+++ b/lib/chef/provider/zypper_repository.rb
@@ -123,7 +123,7 @@ class Chef
# matches 2.0 and 2.2 versions from SLES 12 and 15: https://rubular.com/r/e6D0WfGK6SXvUp
version = %r{gpg \(GnuPG\)\s*(.*)}.match(so.stdout)[1]
logger.trace("GPG package version is #{version}")
- version
+ Gem::Version.new(version)
end
# is the provided key already installed