Skip to content

Instantly share code, notes, and snippets.

@bodepd
Created April 10, 2013 08:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bodepd/5352705 to your computer and use it in GitHub Desktop.
Save bodepd/5352705 to your computer and use it in GitHub Desktop.
diff --git a/lib/puppet/provider/nova_config/ini_setting.rb b/lib/puppet/provider/nova_config/ini_setting.rb
index aa5e56d..67de067 100644
--- a/lib/puppet/provider/nova_config/ini_setting.rb
+++ b/lib/puppet/provider/nova_config/ini_setting.rb
@@ -3,6 +3,15 @@ Puppet::Type.type(:nova_config).provide(
:parent => Puppet::Type.type(:ini_setting).provider(:ruby)
) do
+ def self.instances
+ require 'ruby-debug';debugger
+ super.collect do |x|
+ name = x.instance_variable_get(:@property_hash)[:name]
+ x.instance_variable_get(:@property_hash).merge!(:name => name.gsub(/^DEFAULT\//, ''))
+ x
+ end
+ end
+
# the setting is always default
# this if for backwards compat with the old puppet providers for nova_config
def section
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment