diff options
author | Tim Smith <tsmith84@gmail.com> | 2020-06-04 17:07:22 -0700 |
---|---|---|
committer | Tim Smith <tsmith84@gmail.com> | 2020-06-23 08:56:08 -0700 |
commit | ad9663df347410eb6dab07a4371c8ff67bffef0c (patch) | |
tree | 73aa566462e13dd353e5badd5d47ceb79f238aa2 | |
parent | d543623491683340c7d85815aba1cebead2c3552 (diff) | |
download | chef-ad9663df347410eb6dab07a4371c8ff67bffef0c.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 |