Uploaded image for project: 'CFEngine Community'
  1. CFEngine Community
  2. CFE-2842

Second file might be corrupted if created from a single template

    XMLWordPrintable

    Details

    • Type: Development efficiency
    • Status: Open
    • Priority: Medium
    • Resolution: Unresolved
    • Affects Version/s: 3.7.8
    • Fix Version/s: None
    • Component/s: Promise type: files
    • Labels:
      None

      Description

      test.ini.tpl content:

      [%CFEngine any:: %]
      [%CFEngine BEGIN %]
      Lots of text goes here. Lots of text goes here. Lots of text goes here. Lots of text goes here.
      Lots of text goes here. Lots of text goes here. Lots of text goes here. Lots of text goes here.
      Lots of text goes here. Lots of text goes here. Lots of text goes here. Lots of text goes here.
      Lots of text goes here. Lots of text goes here. Lots of text goes here. Lots of text goes here.
      Lots of text goes here. Lots of text goes here. Lots of text goes here. Lots of text goes here.
      Lots of text goes here. Lots of text goes here. Lots of text goes here. Lots of text goes here.
      Lots of text goes here. Lots of text goes here. Lots of text goes here. Lots of text goes here.
      Lots of text goes here. Lots of text goes here. Lots of text goes here. Lots of text goes here.
      Lots of text goes here. Lots of text goes here. Lots of text goes here. Lots of text goes here.
      Lots of text goes here. Lots of text goes here. Lots of text goes here. Lots of text goes here.
      Lots of text goes here. Lots of text goes here. Lots of text goes here. Lots of text goes here.
      Lots of text goes here. Lots of text goes here. Lots of text goes here. Lots of text goes here.
      Lots of text goes here. Lots of text goes here. Lots of text goes here. Lots of text goes here.
      Lots of text goes here. Lots of text goes here. Lots of text goes here. Lots of text goes here.
      Lots of text goes here. Lots of text goes here. Lots of text goes here. Lots of text goes here.
      Lots of text goes here. Lots of text goes here. Lots of text goes here. Lots of text goes here.
      Lots of text goes here. Lots of text goes here. Lots of text goes here. Lots of text goes here.
      Lots of text goes here. Lots of text goes here. Lots of text goes here. Lots of text goes here.
      Lots of text goes here. Lots of text goes here. Lots of text goes here. Lots of text goes here.
      Lots of text goes here. Lots of text goes here. Lots of text goes here. Lots of text goes here.
      Lots of text goes here. Lots of text goes here. Lots of text goes here. Lots of text goes here.
      Lots of text goes here. Lots of text goes here. Lots of text goes here. Lots of text goes here.
      Lots of text goes here. Lots of text goes here. Lots of text goes here. Lots of text goes here.
      Lots of text goes here. Lots of text goes here. Lots of text goes here. Lots of text goes here.
      Lots of text goes here. Lots of text goes here. Lots of text goes here. Lots of text goes here.
      Lots of text goes here. Lots of text goes here. Lots of text goes here. Lots of text goes here.
      Lots of text goes here. Lots of text goes here. Lots of text goes here. Lots of text goes here.
      Lots of text goes here. Lots of text goes here. Lots of text goes here. Lots of text goes here.
      Lots of text goes here. Lots of text goes here. Lots of text goes here. Lots of text goes here.
      Lots of text goes here. Lots of text goes here. Lots of text goes here. Lots of text goes here.
      Lots of text goes here. Lots of text goes here. Lots of text goes here. Lots of text goes here.
      Lots of text goes here. Lots of text goes here. Lots of text goes here. Lots of text goes here.
      Lots of text goes here. Lots of text goes here. Lots of text goes here. Lots of text goes here.
      Lots of text goes here. Lots of text goes here. Lots of text goes here. Lots of text goes here.
      Lots of text goes here. Lots of text goes here. Lots of text goes here. Lots of text goes here.
      Lots of text goes here. Lots of text goes here. Lots of text goes here. Lots of text goes here.
      Lots of text goes here. Lots of text goes here. Lots of text goes here. Lots of text goes here.
      Lots of text goes here. Lots of text goes here. Lots of text goes here. Lots of text goes here.
      Lots of text goes here. Lots of text goes here. Lots of text goes here. Lots of text goes here.
      Lots of text goes here. Lots of text goes here. Lots of text goes here. Lots of text goes here.
      Lots of text goes here. Lots of text goes here. Lots of text goes here. Lots of text goes here.
      Lots of text goes here. Lots of text goes here. Lots of text goes here. Lots of text goes here.
      Lots of text goes here. Lots of text goes here. Lots of text goes here. Lots of text goes here.
      Lots of text goes here. Lots of text goes here. Lots of text goes here. Lots of text goes here.
      Lots of text goes here. Lots of text goes here. Lots of text goes here. Lots of text goes here.
      Lots of text goes here. Lots of text goes here. Lots of text goes here. Lots of text goes here.
      Lots of text goes here. Lots of text goes here. Lots of text goes here. Lots of text goes here.
      Lots of text goes here. Lots of text goes here. Lots of text goes here. Lots of text goes here.
      Lots of text goes here. Lots of text goes here. Lots of text goes here. Lots of text goes here.
      Lots of text goes here. Lots of text goes here. Lots of text goes here. Lots of text goes here.
      Lots of text goes here. Lots of text goes here. Lots of text goes here. Lots of text goes here.
      Lots of text goes here. Lots of text goes here. Lots of text goes here. Lots of text goes here.
      Lots of text goes here. Lots of text goes here. Lots of text goes here. Lots of text goes here.
      Lots of text goes here. Lots of text goes here. Lots of text goes here. Lots of text goes here.
      Lots of text goes here. Lots of text goes here. Lots of text goes here. Lots of text goes here.
      Lots of text goes here. Lots of text goes here. Lots of text goes here. Lots of text goes here.
      Lots of text goes here. Lots of text goes here. Lots of text goes here. Lots of text goes here.
      Lots of text goes here. Lots of text goes here. Lots of text goes here. Lots of text goes here.
      Lots of text goes here. Lots of text goes here. Lots of text goes here. Lots of text goes here.
      Lots of text goes here. Lots of text goes here. Lots of text goes here. Lots of text goes here.
      Lots of text goes here. Lots of text goes here. Lots of text goes here. Lots of text goes here.
      Lots of text goes here. Lots of text goes here. Lots of text goes here. Lots of text goes here.
      Lots of text goes here. Lots of text goes here. Lots of text goes here. Lots of text goes here.
      Lots of text goes here. Lots of text goes here. Lots of text goes here. Lots of text goes here.
      Lots of text goes here. Lots of text goes here. Lots of text goes here. Lots of text goes here.
      Lots of text goes here. Lots of text goes here. Lots of text goes here. Lots of text goes here.
      Lots of text goes here. Lots of text goes here. Lots of text goes here. Lots of text goes here.
      Lots of text goes here. Lots of text goes here. Lots of text goes here. Lots of text goes here.
      Lots of text goes here. Lots of text goes here. Lots of text goes here. Lots of text goes here.
      Lots of text goes here. Lots of text goes here. Lots of text goes here. Lots of text goes here.
      Lots of text goes here. Lots of text goes here. Lots of text goes here. Lots of text goes here.
      Lots of text goes here. Lots of text goes here. Lots of text goes here. Lots of text goes here.
      [%CFEngine END %]
      
      [%CFEngine any:: %]
      [%CFEngine BEGIN %]
      Only 2nd section.
      [%CFEngine END %]
      
      
      
      bundle agent test1
      {
      files:
        "/test.ini"
          create => "true",
          edit_template => "$(g.inputs_dir)/files/test.ini.tpl";
        "/test2.ini"
          create => "true",
          edit_template => "$(g.inputs_dir)/files/test.ini.tpl";
      }
      

      Resulting "test.ini" file is fine while the "test2.ini" file is corrupted, contains only:

      Only 2nd section.

      How to reproduce:

      sudo cf-agent -I -K -b test1

      Problem might be similar to CFE-1516.

      Workaround: use mustache instead.

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              roman Roman Prots
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:

                Summary Panel