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 am thinking of making something similar to 
[this](https://github.com/jclouds/jclouds/blob/4bbca9edf943852ce1ea5aa579fa0554f770a3ea/providers/google-compute-engine/src/main/java/org/jclouds/googlecomputeengine/compute/domain/internal/GoogleComputeEngineArbitraryCpuRamTemplateBuilderImpl.java),
 WDYT?

-- 
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_r101563115

Reply via email to