summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim Smith <tsmith@chef.io>2018-03-19 10:35:15 -0700
committerTim Smith <tsmith@chef.io>2018-03-19 10:35:15 -0700
commitd0620bd371bbfabf7f9f201566ec0425b72276a8 (patch)
tree32690438627e9f5efcdb6b5133b922d1929f6a83
parent9f454605c9d8c328826251160d493025b4a881ea (diff)
downloadchef-fix_zypper.tar.gz
Just look for Yes and anything in the regexfix_zypper
Signed-off-by: Tim Smith <tsmith@chef.io>
-rw-r--r--lib/chef/provider/package/zypper.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/chef/provider/package/zypper.rb b/lib/chef/provider/package/zypper.rb
index 5cd2471f96..59604c5a33 100644
--- a/lib/chef/provider/package/zypper.rb
+++ b/lib/chef/provider/package/zypper.rb
@@ -41,7 +41,7 @@ class Chef
when /^Version *: (.+) *$/
candidate_version = $1.strip
Chef::Log.debug("#{new_resource} version #{candidate_version}")
- when /^Installed *: Yes *(\(automatically\))?$/ # http://rubular.com/r/qhPeO6vP9h
+ when /^Installed *: Yes.*$/ # http://rubular.com/r/9StcAMjOn6
is_installed = true
Chef::Log.debug("#{new_resource} is installed")
when /^Status *: out-of-date \(version (.+) installed\) *$/