On Aug 9, 2012, at 6:03 PM, [email protected] wrote:

ACK.

> From: marios <[email protected]>
> 
> https://issues.apache.org/jira/browse/DTACLOUD-296
> 
> Signed-off-by: marios <[email protected]>
> ---
> server/views/storage_volumes/attach.html.haml |    2 +-
> server/views/storage_volumes/show.html.haml   |    2 +-
> 2 files changed, 2 insertions(+), 2 deletions(-)
> 
> diff --git a/server/views/storage_volumes/attach.html.haml 
> b/server/views/storage_volumes/attach.html.haml
> index 0127ccd..8c20753 100644
> --- a/server/views/storage_volumes/attach.html.haml
> +++ b/server/views/storage_volumes/attach.html.haml
> @@ -1,6 +1,6 @@
> %h1 Attach storage volume
> 
> -%form{ :action => attach_storage_volume_url(params[:id]), :method => :post }
> +%form{ :action => api_url_for("storage_volumes/#{params[:id]}/attach"), 
> :method => :post }
>   %p
>     %label
>       Instance ID:
> diff --git a/server/views/storage_volumes/show.html.haml 
> b/server/views/storage_volumes/show.html.haml
> index 2ac9944..9a9da37 100644
> --- a/server/views/storage_volumes/show.html.haml
> +++ b/server/views/storage_volumes/show.html.haml
> @@ -40,4 +40,4 @@
>             =link_to_action "Delete", 
> api_url_for("storage_volumes/#{@storage_volume.id}"), :delete
>             =link_to_action "Attach", 
> api_url_for("storage_volumes/#{@storage_volume.id}/attach_instance"), :get
>           - if @storage_volume.instance_id
> -            =link_to_action "Detach", 
> detach_storage_volume_url(@storage_volume.id), :post
> +            =link_to_action "Detach", 
> api_url_for("storage_volumes/#{@storage_volume.id}/detach"), :post
> -- 
> 1.7.6.5
> 

Reply via email to