> + if (isAutomaticId(hardwareId)) {
> + AutomaticHardwareIdSpec spec = parseId(hardwareId);
> + return automaticHardwareForCpuAndRam(spec.getCores(),
> spec.getRam());
> + }
> + else{
> + throw
> throwNoSuchElementExceptionAfterLoggingHardwareIds("Invalid hardwareId",
> hardwaresToSearch);
> + }
> + }
> + }
> +
> + protected Hardware resolveHardware(Set<? extends Hardware> hardwarel,
> final Iterable<? extends Image> images) {
> + try {
> + return super.resolveHardware(hardwarel, images);
> + }
> + catch (Exception NoSuchElementException) {
> + if (super.minCores != 0 && super.minRam != 0) {
Considering that if only minRam or minCores are provided and they match with a
hardware profile a VM is created according to the hardware profile, I think
that we should have some defaults. I will ask on the mail list about the
default values.
---
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/pull/984/files/5e38477f80df5dd0dce54f7773cf9e883fbf3d2d#r71595038