summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLamont Granquist <lamont@scriptkiddie.org>2015-01-22 11:34:11 -0800
committerLamont Granquist <lamont@scriptkiddie.org>2015-02-11 19:12:07 -0800
commitc8beebb0cc703c29dc9fedff59ee7959a9be1bf7 (patch)
treeb96dc3ea6486fc6848c56823e77fac1f69d8cdc4
parent18b1681a72865811331167c0cffd032f217d0f66 (diff)
downloadchef-c8beebb0cc703c29dc9fedff59ee7959a9be1bf7.tar.gz
server can send back false here
Chef::ApiClient::Registration#update gets back a response from the Chef Server with false here and when we try to deserialize it from json it will throw a validation error if we don't patch this.
-rw-r--r--lib/chef/api_client.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/chef/api_client.rb b/lib/chef/api_client.rb
index a3346b5b68..ce9ceb312c 100644
--- a/lib/chef/api_client.rb
+++ b/lib/chef/api_client.rb
@@ -96,7 +96,7 @@ class Chef
set_or_return(
:private_key,
arg,
- :kind_of => String
+ :kind_of => [String, FalseClass]
)
end