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