diff options
author | Tim Smith <tsmith84@gmail.com> | 2020-06-04 17:07:22 -0700 |
---|---|---|
committer | Tim Smith <tsmith84@gmail.com> | 2020-06-04 17:08:09 -0700 |
commit | 69d0710481a8d5d475a812a956b8493db918404f (patch) | |
tree | 1f979af3c1e4e9f0d4227b208d0371be6daae52e | |
parent | a658e6a0247dbd5207d37c0316247f4a1a890e42 (diff) | |
download | chef-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.rb | 2 |
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 |