> } > > - instanceTemplate.disks(disks); > - > - LoginCredentials credentials = > getFromImageAndOverrideIfRequired(template.getImage(), options); > - > - ImmutableMap.Builder<String, String> metadataBuilder = > metatadaFromTemplateOptions.apply(options); > - > - metadataBuilder.put(GCE_IMAGE_METADATA_KEY, > template.getImage().getUri().toString()); > - > - if (!options.shouldKeepBootDisk()) { > - metadataBuilder.put(GCE_DELETE_BOOT_DISK_METADATA_KEY, > Boolean.TRUE.toString()); > + // Add metadata from template and for ssh key and image id > + newInstance.metadata().putAll(options.getUserMetadata()); > + if (options.getPublicKey() != null) { // TODO: why are we doing this?
You mean "why are we not throwing an error" or "why are we supporting this option"? --- Reply to this email directly or view it on GitHub: https://github.com/jclouds/jclouds-labs-google/pull/86/files#r20059784