You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@deltacloud.apache.org by tc...@redhat.com on 2011/01/18 16:34:47 UTC

[PATCH] Include storage volume realm and state in xml output.

From: Tobias Crawley <tc...@redhat.com>

The realm_id and state were in the view before, but we lost them with 
the RHEV-M patches.

---
 server/views/storage_volumes/show.xml.haml |    7 +++++++
 1 files changed, 7 insertions(+), 0 deletions(-)

diff --git a/server/views/storage_volumes/show.xml.haml b/server/views/storage_volumes/show.xml.haml
index 8a20c61..5db2807 100644
--- a/server/views/storage_volumes/show.xml.haml
+++ b/server/views/storage_volumes/show.xml.haml
@@ -15,6 +15,13 @@
   - if @storage_volume.device
     %device
       = @storage_volume.device
+  - if @storage_volume.realm_id
+    %realm_id<
+      = @storage_volume.realm_id
+  - if @storage_volume.state
+    %state<
+      = @storage_volume.state
+
   - unless @storage_volume.instance_id.nil?
     %mount
       %instance{:href => @storage_volume.instance_id, :id => @storage_volume.instance_id}
-- 
1.7.3.2


Re: [PATCH] Include storage volume realm and state in xml output.

Posted by David Lutterkort <lu...@redhat.com>.
On Tue, 2011-01-18 at 10:34 -0500, tcrawley@redhat.com wrote:
> From: Tobias Crawley <tc...@redhat.com>
> 
> The realm_id and state were in the view before, but we lost them with 
> the RHEV-M patches.

ACK. Pushed.

David