alibazlamit commented on this pull request.
> + }
+
+ List<Processor> processors = new ArrayList<Processor>();
+ for (int i = 0; i < server.hardware().vcore(); i++) {
+ Processor proc = new
Processor(server.hardware().coresPerProcessor(), 1d);
+ processors.add(proc);
+ }
+ AutomaticHardwareIdSpec id =
AutomaticHardwareIdSpec.automaticHardwareIdSpecBuilder(server.hardware().vcore(),
(int) minRam, Optional.of((float) size));
+ hardware = new HardwareBuilder()
+ .ids(id.toString())
+ .ram((int) minRam)
+ .processors(ImmutableList.copyOf(processors))
+ .hypervisor("kvm")
+ .volumes(volumes)
+ .location(location)
+ .build();
I was thinking about creating something [like
](https://github.com/jclouds/jclouds/blob/4bbca9edf943852ce1ea5aa579fa0554f770a3ea/providers/google-compute-engine/src/main/java/org/jclouds/googlecomputeengine/compute/domain/internal/GoogleComputeEngineArbitraryCpuRamTemplateBuilderImpl.java)this
and adding all the custom hardware logic in that class, is that the needed
approach?
--
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/338#discussion_r101567462