> +        final String password = "LTbAHNbcMt";
> +
> +//        final org.jclouds.compute.domain.Image image = template.getImage();
> +
> +        // provision all volumes based on hardware
> +        List<? extends Volume> volumes = hardware.getVolumes();
> +        List<String> volumeIds = 
> Lists.newArrayListWithExpectedSize(volumes.size());
> +
> +        int i = 1;
> +        for (final Volume volume : volumes) {
> +            try {
> +                logger.trace("<< provisioning volume '%s'", volume);
> +                final 
> org.apache.jclouds.profitbricks.rest.domain.Volume.Request.CreatePayload 
> request = 
> org.apache.jclouds.profitbricks.rest.domain.Volume.Request.creatingBuilder()
> +                        .dataCenterId(dataCenterId)
> +                        // put image to first volume
> +                        .image("02a49ebb-27b7-11e6-8e88-52540005ab80")

Take the image id from the template options instead

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/jclouds/jclouds-labs/pull/292/files/1533bf29a80f2c87834f501abd91ea399debd688#r77744368

Reply via email to