title: JClouds-Chef: Invalid value for cookbook_versions?
body: <p>I'm using the JClouds-Chef API to dynamically-create new Chef <a href="https://github.com/jclouds/jclouds-chef/blob/master/core/src/main/java/org/jclouds/chef/domain/Environment.java" rel="nofollow">Environments</a> on the fly.  The main gist of my code:</p>
  
  <pre><code>Environment.builder()
      .name("${appName}_${envStr}")
      .description("A really cool app")
      .cookbookVersion("my_app", "0.2.0")
      .cookbookVersion("my_logs", "0.1.0")
      .attributes(buildAttributes(envStr))
      .build()
  </code></pre>
  
  <p>When this runs I get the following error:</p>
  
  <pre><code>[main] INFO com.myapp.ChefManager - org.jclouds.http.HttpResponseException: command: POST https://mychef01/environments HTTP/1.1 failed with response: HTTP/1.1 400 Bad Request; content: [Invalid value '0.2.0' for cookbook_versions]
      at org.jclouds.chef.handlers.ChefErrorHandler.handleError(ChefErrorHandler.java:57)
      at org.jclouds.http.handlers.DelegatingErrorHandler.handleError(DelegatingErrorHandler.java:67)
      at org.jclouds.http.internal.BaseHttpCommandExecutorService.shouldContinue(BaseHttpCommandExecutorService.java:180)
  </code></pre>
  
  <p>I found someone with a <a href="https://github.com/mdxp/knife-backup/issues/10" rel="nofollow">similar issue</a> from last year, and it seems that this might have been a bug introduced between Chef 10 and Chef 11? If so, is there a hack or workaround to this from JClouds-Chef?</p>