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 core 1/3] Fixed unstripped elements inside storage volume XML
Date Wed, 05 Jan 2011 16:03:24 GMT
On 05/01/11 17:00 +0100, mfojtik@redhat.com wrote:
>From: Michal Fojtik <mfojtik@redhat.com>
>
>---
> server/views/hardware_profiles/show.xml.haml |    2 ++
> server/views/storage_volumes/show.xml.haml   |    6 +++---
> 2 files changed, 5 insertions(+), 3 deletions(-)
>
>diff --git a/server/views/hardware_profiles/show.xml.haml b/server/views/hardware_profiles/show.xml.haml
>index 094ffd5..434ee77 100644
>--- a/server/views/hardware_profiles/show.xml.haml
>+++ b/server/views/hardware_profiles/show.xml.haml
>@@ -1,6 +1,8 @@
> - unless defined?(partial)
>   !!! XML
> %hardware_profile{ :href => hardware_profile_url(@profile.name), :id => @profile.name
}
>+  %timestamp<
>+    =Time.now.to_i

Damn, sorry for this timestamp ;-) It was used for testing, will be removed
before push.

>   %name<
>     =@profile.name
>   - @profile.each_property do |prop|
>diff --git a/server/views/storage_volumes/show.xml.haml b/server/views/storage_volumes/show.xml.haml
>index 8a20c61..c568561 100644
>--- a/server/views/storage_volumes/show.xml.haml
>+++ b/server/views/storage_volumes/show.xml.haml
>@@ -7,13 +7,13 @@
>   %capacity{ :unit => "GB" }<
>     = @storage_volume.capacity
>   - if @storage_volume.kind
>-    %kind
>+    %kind<
>       = @storage_volume.kind
>   - if @storage_volume.name
>-    %name
>+    %name<
>       = @storage_volume.name
>   - if @storage_volume.device
>-    %device
>+    %device<
>       = @storage_volume.device
>   - unless @storage_volume.instance_id.nil?
>     %mount
>--
>1.7.3.4
>

-- 
--------------------------------------------------------
Michal Fojtik, mfojtik@redhat.com
Deltacloud API: http://deltacloud.org
--------------------------------------------------------

Mime
View raw message