diff options
author | Richard Manyanza <rm@dsc.co.tz> | 2014-03-28 09:08:32 +0300 |
---|---|---|
committer | Richard Manyanza <rm@dsc.co.tz> | 2014-03-28 09:08:32 +0300 |
commit | 4f611a2aa4dd3bebd7668abae1f13b1ab3bd1952 (patch) | |
tree | 21feddeb12c0c31a1592be9d549ffc672d82cfc8 /lib/chef/resource/freebsd_package.rb | |
parent | f450ac669eb4f364adc1b87e438f1b9830217c49 (diff) | |
download | chef-4f611a2aa4dd3bebd7668abae1f13b1ab3bd1952.tar.gz |
Access source instance variable directly when setting provider
Diffstat (limited to 'lib/chef/resource/freebsd_package.rb')
-rw-r--r-- | lib/chef/resource/freebsd_package.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/chef/resource/freebsd_package.rb b/lib/chef/resource/freebsd_package.rb index ef1b444a15..c7a8d44181 100644 --- a/lib/chef/resource/freebsd_package.rb +++ b/lib/chef/resource/freebsd_package.rb @@ -46,7 +46,7 @@ class Chef private def assign_provider - @provider = if source.to_s =~ /^ports$/i + @provider = if @source.to_s =~ /^ports$/i Chef::Provider::Package::Freebsd::Port elsif ships_with_pkgng? || supports_pkgng? Chef::Provider::Package::Freebsd::Pkgng |