> @@ -43,6 +43,13 @@
>
> @Override
> public CookbookDefinition apply(HttpResponse response) {
> - return parser.apply(response).values().iterator().next();
> + Map<String, CookbookDefinition> result = parser.apply(response);
Another option would be to tell Gson how to deserialize a CookbookDefinition by
adding a new "CookbookDefinitionAdapter" in the ChefParser module, but IMO that
would be more complex as we have to deal with different parsers for Chef
versions 0.9 and later versions.
---
Reply to this email directly or view it on GitHub:
https://github.com/jclouds/jclouds-chef/pull/24/files#r6428392