From 29e8b9d46756453119bb8a276df8b341ae842b2f Mon Sep 17 00:00:00 2001 From: Eric Heydrick Date: Mon, 30 Sep 2013 19:10:01 -0400 Subject: [PATCH] [COOK-3683] Correct #match call for checking the current plugin version Signed-off-by: Seth Vargo --- providers/plugin.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/providers/plugin.rb b/providers/plugin.rb index b734971ff5..10302362a9 100644 --- a/providers/plugin.rb +++ b/providers/plugin.rb @@ -64,7 +64,7 @@ def current_version manifest_file = ::File.join(plugins_dir, @current_resource.name, 'META-INF', 'MANIFEST.MF') if ::File.exist?(manifest_file) manifest = IO.read(manifest_file) - current_version = manifest.match(/^Plugin-Version:\s*(.+)$/).strip + current_version = manifest.match(/^Plugin-Version:\s*(.+)$/)[1].strip end current_version end