deltacloud-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Michal Fojtik <mfoj...@redhat.com>
Subject Re: [PATCH] CIMI - fix Time parse on Machine model (creation time) - DTACLOUD-370
Date Wed, 14 Nov 2012 09:19:17 GMT
On Nov 14, 2012, at 9:05 AM, marios@redhat.com wrote:

ACK.

> From: marios <marios@redhat.com>
> 
> https://issues.apache.org/jira/browse/DTACLOUD-370
> 
> Signed-off-by: marios <marios@redhat.com>
> ---
> server/lib/cimi/models/machine.rb | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/server/lib/cimi/models/machine.rb b/server/lib/cimi/models/machine.rb
> index 648c395..aeacf5b 100644
> --- a/server/lib/cimi/models/machine.rb
> +++ b/server/lib/cimi/models/machine.rb
> @@ -125,7 +125,7 @@ class CIMI::Model::Machine < CIMI::Model::Base
>     machine_spec = {
>       :name => instance.name,
>       :description => "Instance #{instance.name}",
> -      :created => instance.launch_time.nil? ? Time.now.xmlschema : Time.parse(instance.launch_time).xmlschema,
> +      :created => instance.launch_time.nil? ? Time.now.xmlschema : Time.parse(instance.launch_time.to_s).xmlschema,
>       :id => context.machine_url(instance.id),
>       :state => convert_instance_state(instance.state),
>       :cpu => cpu || convert_instance_cpu(instance.instance_profile, context),
> -- 
> 1.7.11.7
> 

Michal Fojtik
http://deltacloud.org
mfojtik@redhat.com




Mime
View raw message