> +
> +      super(locations, images, hardwares, defaultLocation, optionsProvider, 
> defaultTemplateProvider);
> +   }
> +
> +   protected Hardware automaticHardwareForCpuAndRam(double cores, int ram) {
> +      return new HardwareBuilder()
> +            .id(generateAutomaticId(cores, ram))
> +            .ram(ram)
> +            .processor(new Processor(cores, 1.0))
> +            .build();
> +   }
> +
> +   protected Hardware findHardwareWithId(Set<? extends Hardware> 
> hardwaresToSearch) {
> +      try {
> +            return super.findHardwareWithId(hardwaresToSearch);
> +      } catch (Exception NoSuchElementException) {

Also, just `catch (NoSuchElementException ex)`

---
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#r71278585

Reply via email to