summaryrefslogtreecommitdiff
path: root/lib/chef/provider/apt_repository.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/chef/provider/apt_repository.rb')
-rw-r--r--lib/chef/provider/apt_repository.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/chef/provider/apt_repository.rb b/lib/chef/provider/apt_repository.rb
index 31dfc5c5d4..ebb0c5c875 100644
--- a/lib/chef/provider/apt_repository.rb
+++ b/lib/chef/provider/apt_repository.rb
@@ -128,7 +128,7 @@ class Chef
so = shell_out("apt-key list")
so.stdout.split(/\n/).map do |t|
- if t =~ %r{^\/#{key}.*\[expired: .*\]$}
+ if t.match?(%r{^\/#{key}.*\[expired: .*\]$})
Chef::Log.debug "Found expired key: #{t}"
valid = false
break