incubator-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] Fix typo in XML for EC2 create_key (extraneous <pem> tag added)+single trailing whitespace
Date Tue, 26 Jul 2011 15:19:33 GMT
On Jul 26, 2011, at 1:45 PM, marios@redhat.com wrote:

ACK. Good catch!

  -- Michal

> From: marios <marios@redhat.com>
> 
> 
> Signed-off-by: marios <marios@redhat.com>
> ---
> .../lib/deltacloud/helpers/application_helper.rb   |    4 ++--
> 1 files changed, 2 insertions(+), 2 deletions(-)
> 
> diff --git a/server/lib/deltacloud/helpers/application_helper.rb b/server/lib/deltacloud/helpers/application_helper.rb
> index ebfcf35..527aac4 100644
> --- a/server/lib/deltacloud/helpers/application_helper.rb
> +++ b/server/lib/deltacloud/helpers/application_helper.rb
> @@ -147,7 +147,7 @@ module ApplicationHelper
>   end
> 
>   def render_cdata(text)
> -    "<pem><![CDATA[#{text.strip}]]></pem>"
> +    "<![CDATA[#{text.strip}]]>"
>   end
> 
>   def link_to_action(action, url, method)
> @@ -176,7 +176,7 @@ module ApplicationHelper
>   def link_to_documentation
>     return '' unless request.env['REQUEST_URI']
>     uri = request.env['REQUEST_URI'].dup
> -    uri.gsub!(Sinatra::UrlForHelper::DEFAULT_URI_PREFIX, 
> +    uri.gsub!(Sinatra::UrlForHelper::DEFAULT_URI_PREFIX,
>               api_url_for(:docs)) unless uri.include?("docs") #i.e. if already serving
under /api/docs, leave it be
>     '<a href="%s">[ Documentation ]</a>' % uri
>   end
> -- 
> 1.7.3.4
> 

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


Mime
View raw message