> @@ -48,6 +48,7 @@
>     public Hardware apply(VMHardware from) {
>        final HardwareBuilder builder = new HardwareBuilder()
>                .name(from.name)
> +              .providerId("azurecompute-arm")

This is not the id of the provider. This is the "real" id of the hardware 
profile in the provider; the "backend id". Some providers such as AWS encode 
the region information in the IDs, so they have things like 
"us-east-1/ami-0001", etc. But the +real* id in the provider is "ami-0001".

The `id` field is something free that providers can use to encode the 
information they need in order to be able to properly implement the "getById" 
methods in the adapter. The `providerId` is meant to hold the real id of the 
object in the backend provider.

---
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/291/files/8a39037237f5cccc7d100bc58a9a82bdb89924b1#r67884013

Reply via email to