Created
April 10, 2013 08:02
-
-
Save bodepd/5352705 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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