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...@redhat.com on 2011/07/26 13:45:19 UTC

[PATCH] Fix typo in XML for EC2 create_key (extraneous tag added)+single trailing whitespace

From: marios <ma...@redhat.com>


Signed-off-by: marios <ma...@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


Re: [PATCH] Fix typo in XML for EC2 create_key (extraneous tag added)+single trailing whitespace

Posted by Michal Fojtik <mf...@redhat.com>.
On Jul 26, 2011, at 1:45 PM, marios@redhat.com wrote:

ACK. Good catch!

  -- Michal

> From: marios <ma...@redhat.com>
> 
> 
> Signed-off-by: marios <ma...@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