> +
> +   @Inject
> +   public DockerComputeServiceAdapter(DockerApi api, ApiContext<DockerApi> 
> context) {
> +      this.api = checkNotNull(api, "api");
> +      this.context = context;
> +   }
> +
> +   @Override
> +   public NodeAndInitialCredentials<Container> 
> createNodeWithGroupEncodedIntoName(String group, String name,
> +                                                                             
>      Template template) {
> +      checkNotNull(template, "template was null");
> +      checkNotNull(template.getOptions(), "template options was null");
> +
> +      String imageId = checkNotNull(template.getImage().getId(), "template 
> image id must not be null");
> +      String defaultIdentity = 
> context.getProviderMetadata().getApiMetadata().getDefaultIdentity().get();
> +      String defaultCredential = 
> context.getProviderMetadata().getApiMetadata().getDefaultCredential().get();

Thanks for clarifying that!

---
Reply to this email directly or view it on GitHub:
https://github.com/jclouds/jclouds-labs/pull/57/files#r10845140

Reply via email to