> + } catch (NoSuchElementException ex) {
> + if (isAutomaticId(hardwareId)) {
> + AutomaticHardwareIdSpec spec = parseId(hardwareId);
> + return automaticHardwareForCpuAndRam(spec.getCores(),
> spec.getRam());
> + }
> + else {
> + throw ex;
> + }
> + }
> + }
> +
> + protected Hardware resolveHardware(Set<? extends Hardware> hardwarel,
> final Iterable<? extends Image> images) {
> + try {
> + return super.resolveHardware(hardwarel, images);
> + }
> + catch (NoSuchElementException ex) {
Same comment as above - can we avoid "try then catch" as a strategy here?
---
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/55c696c2ba870e202cfb8e42734e66bb31aab7b4#r73571836