Skip to content

Instantly share code, notes, and snippets.

@tas50
Created February 13, 2017 19:52
Show Gist options
  • Save tas50/3638eadbecd35db0a41bb2c49bf455a5 to your computer and use it in GitHub Desktop.
Save tas50/3638eadbecd35db0a41bb2c49bf455a5 to your computer and use it in GitHub Desktop.
Recipe: test::default
* git_config[add name to random] action set
================================================================================
Error executing action `set` on resource 'git_config[add name to random]'
================================================================================
Chef::Exceptions::ValidationFailed
----------------------------------
value is required
Cookbook Trace:
---------------
/tmp/kitchen/cache/cookbooks/git/resources/config.rb:27:in `block in class_from_file'
Resource Declaration:
---------------------
# In /tmp/kitchen/cache/cookbooks/test/recipes/default.rb
8: git_config 'add name to random' do
9: user 'random'
10: scope 'global'
11: key 'user.name'
12: value 'John Doe global'
13: end
14:
Compiled Resource:
------------------
# Declared in /tmp/kitchen/cache/cookbooks/test/recipes/default.rb:8:in `from_file'
git_config("add name to random") do
action [:set]
retries 0
retry_delay 2
default_guard_interpreter :default
declared_type :git_config
cookbook_name "test"
recipe_name "default"
user "random"
scope "global"
key "user.name"
value "John Doe global"
end
Platform:
---------
x86_64-linux
Running handlers:
[2017-02-13T19:48:38+00:00] ERROR: Running exception handlers
Running handlers complete
[2017-02-13T19:48:38+00:00] ERROR: Exception handlers complete
Chef Client failed. 0 resources updated in 02 seconds
[2017-02-13T19:48:38+00:00] FATAL: Stacktrace dumped to /tmp/kitchen/cache/chef-stacktrace.out
[2017-02-13T19:48:38+00:00] FATAL: Please provide the contents of the stacktrace.out file if you file a bug report
[2017-02-13T19:48:38+00:00] ERROR: git_config[add name to random] (test::default line 8) had an error: Chef::Exceptions::ValidationFailed: value is required
[2017-02-13T19:48:38+00:00] FATAL: Chef::Exceptions::ChildConvergeError: Chef run process exited unsuccessfully (exit code 1)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment