Permalink
Browse files

BZ815357: buildcmd: surround template xml with CDATA

  • Loading branch information...
1 parent 396a329 commit 03981c171270b85d09a2a926efd39edf85cb28b4 @hacxman hacxman committed May 3, 2012
Showing with 4 additions and 1 deletion.
  1. +4 −1 lib/aeolus_cli/command/build_command.rb
@@ -34,7 +34,10 @@ def run
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

0 comments on commit 03981c1

Please sign in to comment.