diff options
author | Lamont Granquist <lamont@scriptkiddie.org> | 2015-01-22 11:34:11 -0800 |
---|---|---|
committer | Lamont Granquist <lamont@scriptkiddie.org> | 2015-02-11 19:12:07 -0800 |
commit | c8beebb0cc703c29dc9fedff59ee7959a9be1bf7 (patch) | |
tree | b96dc3ea6486fc6848c56823e77fac1f69d8cdc4 /lib/chef/api_client.rb | |
parent | 18b1681a72865811331167c0cffd032f217d0f66 (diff) | |
download | chef-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.
Diffstat (limited to 'lib/chef/api_client.rb')
-rw-r--r-- | lib/chef/api_client.rb | 2 |
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 |