You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@jclouds.apache.org by Andrew Phillips <no...@github.com> on 2016/08/04 17:56:02 UTC
Re: [jclouds/jclouds] JCLOUDS-482: ArbitraryCpuRam base case (#984)
> + .build();
> + }
> +
> + protected Hardware findHardwareWithId(Set<? extends Hardware> hardwaresToSearch) {
> + try {
> + return super.findHardwareWithId(hardwaresToSearch);
> + } catch (NoSuchElementException ex) {
> + if (isAutomaticId(hardwareId)) {
> + AutomaticHardwareIdSpec spec = parseId(hardwareId);
> + return automaticHardwareForCpuAndRam(spec.getCores(), spec.getRam());
> + }
> + else {
> + throw ex;
> + }
> + }
> + }
[minor] Indenting in the above section is off?
---
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#r73571087