From c55b41611709ab75192fa79a70fce128b1fbe944 Mon Sep 17 00:00:00 2001 From: Tim Smith Date: Mon, 19 Mar 2018 10:35:15 -0700 Subject: Just look for Yes and anything in the regex Signed-off-by: Tim Smith --- lib/chef/provider/package/zypper.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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\) *$/ -- cgit v1.2.1