You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@deltacloud.apache.org by ma...@gmail.com on 2013/01/02 17:10:33 UTC
[PATCH 3/3] temp fix to errors NoMethodError in page
From: NjeriChelimo <ma...@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
Re: [PATCH 3/3] temp fix to errors NoMethodError in page
Posted by "marios@redhat.com" <ma...@redhat.com>.
ACK - I made a couple edits to this patch and pushed (some of the
attributes of machine image have changed since this code was originally
writted - see cimi spec @ [1] ).
updated patch attached to relevant jira ticket :
https://issues.apache.org/jira/browse/DTACLOUD-405
pushed with commit # 162e8ec1540cfc5050cb8a071aeab1eb9f99f435
marios
[1]
http://dmtf.org/sites/default/files/standards/documents/DSP0263_1.0.1.pdf
On 02/01/13 18:10, martha.c.chumo@gmail.com wrote:
> From: NjeriChelimo <ma...@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)
>