Created
August 7, 2014 23:25
-
-
Save vinyar/f9f179f7978847c50b59 to your computer and use it in GitHub Desktop.
registry_key bug?
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
chef:attributes > | |
chef:attributes > default['ge_registry_framework']['HKLM\Software\Policies\Microsoft\Windows\TCPIP\v6Transition'] = | |
chef:attributes > {:name => 'Force_Tuneling', :type => :multi_string, :data => 'Enabled'} | |
=> {:name=>"Force_Tuneling", :type=>:multi_string, :data=>"Enabled"} | |
chef:attributes > | |
chef:attributes > recipe_mode | |
chef:recipe > | |
chef:recipe > | |
chef:recipe > | |
chef:recipe > node['ge_registry_framework'].each do |k,v| | |
chef:recipe > registry_key 'break_test' do | |
chef:recipe > key k | |
chef:recipe ?> values [{ | |
chef:recipe > :name => v.name, | |
chef:recipe > :type => v.type, | |
chef:recipe > :data => v.data | |
chef:recipe ?> }] | |
chef:recipe ?> end | |
chef:recipe ?> end | |
=> {"HKLM\\Software\\Policies\\Microsoft\\Windows\\TCPIP\\v6Transition"=>{"name"=>"Force_Tuneling", "type"=>:multi_stri | |
ng, "data"=>"Enabled"}} | |
chef:recipe > | |
chef:recipe > | |
chef:recipe > | |
chef:recipe > run_chef | |
[2014-08-07T16:23:51-07:00] INFO: Processing registry_key[break_test] action create ((irb#2) line 5) | |
[2014-08-07T16:23:51-07:00] DEBUG: Updating value Force_Tuneling in registry key HKLM\Software\Policies\Microsoft\Window | |
s\TCPIP\v6Transition with type multi_string and data Enabled | |
================================================================================ | |
Error executing action `create` on resource 'registry_key[break_test]' | |
================================================================================ | |
NoMethodError | |
------------- | |
undefined method `to_a' for "Enabled":String | |
Resource Declaration: | |
--------------------- | |
Compiled Resource: | |
------------------ | |
# Declared in (irb#2):5:in `block in irb_binding' | |
registry_key("break_test") do | |
action :create | |
retries 0 | |
retry_delay 2 | |
guard_interpreter :default | |
architecture :machine | |
key "HKLM\\Software\\Policies\\Microsoft\\Windows\\TCPIP\\v6Transition" | |
unscrubbed_values [{:name=>"Force_Tuneling", :type=>:multi_string, :data=>"Enabled"}] | |
values [{:name=>"Force_Tuneling", :type=>:multi_string, :data=>"Enabled"}] | |
end | |
[2014-08-07T16:23:51-07:00] INFO: Running queued delayed notifications before re-raising exception | |
NoMethodError: registry_key[break_test] ((irb#2) line 5) had an error: NoMethodError: undefined method `to_a' for "Enabl | |
ed":String | |
from C:/opscode/chef/embedded/lib/ruby/1.9.1/win32/registry.rb:688:in `write' | |
from C:/opscode/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.14.2-x86-mingw32/lib/chef/win32/registry.rb:67:in | |
`block in set_value' | |
from C:/opscode/chef/embedded/lib/ruby/1.9.1/win32/registry.rb:389:in `open' | |
from C:/opscode/chef/embedded/lib/ruby/1.9.1/win32/registry.rb:496:in `open' | |
from C:/opscode/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.14.2-x86-mingw32/lib/chef/win32/registry.rb:66:in | |
`set_value' | |
from C:/opscode/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.14.2-x86-mingw32/lib/chef/provider/registry_key.r | |
b:112:in `block (2 levels) in action_create' | |
from C:/opscode/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.14.2-x86-mingw32/lib/chef/mixin/why_run.rb:52:in | |
`call' | |
from C:/opscode/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.14.2-x86-mingw32/lib/chef/mixin/why_run.rb:52:in | |
`add_action' | |
from C:/opscode/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.14.2-x86-mingw32/lib/chef/provider.rb:156:in `con | |
verge_by' | |
from C:/opscode/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.14.2-x86-mingw32/lib/chef/provider/registry_key.r | |
b:111:in `block in action_create' | |
from C:/opscode/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.14.2-x86-mingw32/lib/chef/provider/registry_key.r | |
b:102:in `each' | |
from C:/opscode/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.14.2-x86-mingw32/lib/chef/provider/registry_key.r | |
b:102:in `action_create' | |
from C:/opscode/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.14.2-x86-mingw32/lib/chef/provider.rb:121:in `run | |
_action' | |
from C:/opscode/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.14.2-x86-mingw32/lib/chef/resource.rb:648:in `run | |
_action' | |
from C:/opscode/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.14.2-x86-mingw32/lib/chef/runner.rb:49:in `run_ac | |
tion' | |
from C:/opscode/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.14.2-x86-mingw32/lib/chef/runner.rb:81:in `block | |
(2 levels) in converge' | |
from C:/opscode/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.14.2-x86-mingw32/lib/chef/runner.rb:81:in `each' | |
from C:/opscode/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.14.2-x86-mingw32/lib/chef/runner.rb:81:in `block | |
in converge' | |
from C:/opscode/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.14.2-x86-mingw32/lib/chef/resource_collection.rb: | |
98:in `block in execute_each_resource' | |
from C:/opscode/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.14.2-x86-mingw32/lib/chef/resource_collection/ste | |
pable_iterator.rb:116:in `call' | |
from C:/opscode/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.14.2-x86-mingw32/lib/chef/resource_collection/ste | |
pable_iterator.rb:116:in `call_iterator_block' | |
from C:/opscode/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.14.2-x86-mingw32/lib/chef/resource_collection/ste | |
pable_iterator.rb:85:in `step' | |
from C:/opscode/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.14.2-x86-mingw32/lib/chef/resource_collection/ste | |
pable_iterator.rb:104:in `iterate' | |
from C:/opscode/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.14.2-x86-mingw32/lib/chef/resource_collection/ste | |
pable_iterator.rb:55:in `each_with_index' | |
from C:/opscode/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.14.2-x86-mingw32/lib/chef/resource_collection.rb: | |
96:in `execute_each_resource' | |
from C:/opscode/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.14.2-x86-mingw32/lib/chef/runner.rb:80:in `conver | |
ge' | |
from C:/opscode/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.14.2-x86-mingw32/lib/chef/shell/ext.rb:236:in `ru | |
n_chef' | |
from (irb#2):17chef:recipe > |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment