deltacloud-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From martha.c.ch...@gmail.com
Subject [PATCH 3/3] temp fix to errors NoMethodError in page
Date Wed, 02 Jan 2013 16:10:33 GMT
From: NjeriChelimo <martha.c.chumo@gmail.com>

---
 clients/cimi/views/machine_images/show.haml |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/clients/cimi/views/machine_images/show.haml b/clients/cimi/views/machine_images/show.haml
index 1bbe6c7..68ed2fe 100644
--- a/clients/cimi/views/machine_images/show.haml
+++ b/clients/cimi/views/machine_images/show.haml
@@ -22,5 +22,5 @@
   - row 'Description', @machine_image.description
   - row 'State', @machine_image.state
   - row 'Created', @machine_image.created
-  - row 'Image Location', @machine_image.image_location.href
-  - row 'Image Data', @machine_image.image_data
+  - row 'Image Location', @machine_image.image_location.href if @machine_image.image_location
+  - row 'Image Data', @machine_image.image_data if @machine_image.respond_to?(:image_data)
-- 
1.7.9.5


Mime
View raw message