You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@deltacloud.apache.org by mf...@redhat.com on 2012/11/12 12:34:57 UTC

[PATCH core 5/5] CIMI: Map Machine name to Instace name properly

From: Michal Fojtik <mf...@redhat.com>


Signed-off-by: Michal fojtik <mf...@redhat.com>
---
 server/lib/cimi/models/machine.rb | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/server/lib/cimi/models/machine.rb b/server/lib/cimi/models/machine.rb
index c6865b6..92c706b 100644
--- a/server/lib/cimi/models/machine.rb
+++ b/server/lib/cimi/models/machine.rb
@@ -123,8 +123,8 @@ class CIMI::Model::Machine < CIMI::Model::Base
     cpu =  memory = (instance.instance_profile.id == "opaque")? "n/a" : nil
     machine_conf = CIMI::Model::MachineConfiguration.find(instance.instance_profile.name, context)
     machine_spec = {
-      :name => instance.id,
-      :description => instance.name,
+      :name => instance.name,
+      :description => "Instance #{instance.name}",
       :created => instance.launch_time.nil? ? Time.now.xmlschema : Time.parse(instance.launch_time).xmlschema,
       :id => context.machine_url(instance.id),
       :state => convert_instance_state(instance.state),
-- 
1.8.0


Re: [PATCH core 5/5] CIMI: Map Machine name to Instace name properly

Posted by "marios@redhat.com" <ma...@redhat.com>.
ACK

On 12/11/12 13:34, mfojtik@redhat.com wrote:
> From: Michal Fojtik <mf...@redhat.com>
> 
> 
> Signed-off-by: Michal fojtik <mf...@redhat.com>
> ---
>  server/lib/cimi/models/machine.rb | 4 ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)
> 
> diff --git a/server/lib/cimi/models/machine.rb b/server/lib/cimi/models/machine.rb
> index c6865b6..92c706b 100644
> --- a/server/lib/cimi/models/machine.rb
> +++ b/server/lib/cimi/models/machine.rb
> @@ -123,8 +123,8 @@ class CIMI::Model::Machine < CIMI::Model::Base
>      cpu =  memory = (instance.instance_profile.id == "opaque")? "n/a" : nil
>      machine_conf = CIMI::Model::MachineConfiguration.find(instance.instance_profile.name, context)
>      machine_spec = {
> -      :name => instance.id,
> -      :description => instance.name,
> +      :name => instance.name,
> +      :description => "Instance #{instance.name}",
>        :created => instance.launch_time.nil? ? Time.now.xmlschema : Time.parse(instance.launch_time).xmlschema,
>        :id => context.machine_url(instance.id),
>        :state => convert_instance_state(instance.state),
>