[PATCH] BZ815357: buildcmd: surround template xml with CDATA

mzatko at redhat.com mzatko at redhat.com
Thu May 3 11:22:32 UTC 2012


From: Maros Zatko <mzatko at redhat.com>

---
 lib/aeolus_cli/command/build_command.rb |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)

diff --git a/lib/aeolus_cli/command/build_command.rb b/lib/aeolus_cli/command/build_command.rb
index 32b2c73..53d4abc 100644
--- a/lib/aeolus_cli/command/build_command.rb
+++ b/lib/aeolus_cli/command/build_command.rb
@@ -34,7 +34,10 @@ module Aeolus
           begin
             template = read_template
             validate_xml_schema(template)
-            image = Aeolus::CLI::Image.new({:targets => @options[:target] * ",", :tdl => template, :environment => @options[:environment]})
+            image = Aeolus::CLI::Image.new({
+                :targets => @options[:target] * ",",
+                :tdl => "<![CDATA[#{template}]]>",
+                :environment => @options[:environment]})
             image.save!
 
             headers = ActiveSupport::OrderedHash.new
-- 
1.7.7.6




More information about the aeolus-devel mailing list