From ee38ea961e0affd632445f4b83225178718217ed Mon Sep 17 00:00:00 2001 From: Dan Bode Date: Wed, 10 Oct 2012 12:59:45 -0700 Subject: [PATCH] Properly load parent provider from another module As recommended by lak. --- lib/puppet/provider/glance_api_config/ini_setting.rb | 4 +--- lib/puppet/provider/glance_api_paste_ini/ini_setting.rb | 4 +--- lib/puppet/provider/glance_cache_config/ini_setting.rb | 4 +--- lib/puppet/provider/glance_registry_config/ini_setting.rb | 4 +--- lib/puppet/provider/glance_registry_paste_ini/ini_setting.rb | 4 +--- 5 files changed, 5 insertions(+), 15 deletions(-) diff --git a/lib/puppet/provider/glance_api_config/ini_setting.rb b/lib/puppet/provider/glance_api_config/ini_setting.rb index e5a0e4a1..b3cb0952 100644 --- a/lib/puppet/provider/glance_api_config/ini_setting.rb +++ b/lib/puppet/provider/glance_api_config/ini_setting.rb @@ -1,8 +1,6 @@ -Puppet::Type.type(:ini_setting)#.providers - Puppet::Type.type(:glance_api_config).provide( :ini_setting, - :parent => Puppet::Type::Ini_setting::ProviderRuby + :parent => Puppet::Type.type(:ini_setting).provider(:ruby) ) do def section diff --git a/lib/puppet/provider/glance_api_paste_ini/ini_setting.rb b/lib/puppet/provider/glance_api_paste_ini/ini_setting.rb index 1f810f80..b8f36849 100644 --- a/lib/puppet/provider/glance_api_paste_ini/ini_setting.rb +++ b/lib/puppet/provider/glance_api_paste_ini/ini_setting.rb @@ -1,8 +1,6 @@ -Puppet::Type.type(:ini_setting)#.providers - Puppet::Type.type(:glance_api_paste_ini).provide( :ini_setting, - :parent => Puppet::Type::Ini_setting::ProviderRuby + :parent => Puppet::Type.type(:ini_setting).provider(:ruby) ) do def section diff --git a/lib/puppet/provider/glance_cache_config/ini_setting.rb b/lib/puppet/provider/glance_cache_config/ini_setting.rb index 188c6e92..71f0c9a9 100644 --- a/lib/puppet/provider/glance_cache_config/ini_setting.rb +++ b/lib/puppet/provider/glance_cache_config/ini_setting.rb @@ -1,8 +1,6 @@ -Puppet::Type.type(:ini_setting)#.providers - Puppet::Type.type(:glance_cache_config).provide( :ini_setting, - :parent => Puppet::Type::Ini_setting::ProviderRuby + :parent => Puppet::Type.type(:ini_setting).provider(:ruby) ) do def section diff --git a/lib/puppet/provider/glance_registry_config/ini_setting.rb b/lib/puppet/provider/glance_registry_config/ini_setting.rb index d8b20eca..1a3fdb4b 100644 --- a/lib/puppet/provider/glance_registry_config/ini_setting.rb +++ b/lib/puppet/provider/glance_registry_config/ini_setting.rb @@ -1,8 +1,6 @@ -Puppet::Type.type(:ini_setting)#.providers - Puppet::Type.type(:glance_registry_config).provide( :ini_setting, - :parent => Puppet::Type::Ini_setting::ProviderRuby + :parent => Puppet::Type.type(:ini_setting).provider(:ruby) ) do def section diff --git a/lib/puppet/provider/glance_registry_paste_ini/ini_setting.rb b/lib/puppet/provider/glance_registry_paste_ini/ini_setting.rb index a7317c26..986bf8c6 100644 --- a/lib/puppet/provider/glance_registry_paste_ini/ini_setting.rb +++ b/lib/puppet/provider/glance_registry_paste_ini/ini_setting.rb @@ -1,8 +1,6 @@ -Puppet::Type.type(:ini_setting)#.providers - Puppet::Type.type(:glance_registry_paste_ini).provide( :ini_setting, - :parent => Puppet::Type::Ini_setting::ProviderRuby + :parent => Puppet::Type.type(:ini_setting).provider(:ruby) ) do def section