> @@ -43,6 +43,13 @@
>  
>     @Override
>     public CookbookDefinition apply(HttpResponse response) {
> -      return parser.apply(response).values().iterator().next();
> +      Map<String, CookbookDefinition> result = parser.apply(response);

>From IRC

<pre>
&lt;nacx&gt; if we want gson to do all the deserialization, we need to change 
the
       model and add a new entity that holds the name and contains the current  
                                                             
       cookbook definition
&lt;nacx&gt; to match the json structure
&lt;nacx&gt; if we just want to add the name to the current CookbookDefinition,
       which would look cleaner
</pre>

---
Reply to this email directly or view it on GitHub:
https://github.com/jclouds/jclouds-chef/pull/24/files#r6428360

Reply via email to