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

$(this.promiser) not expanded in edit_template

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Done
    • Priority: Medium
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 3.6.1
    • Component/s: Promise type: files
    • Labels:
      None

      Description

      Hi,

      I think I found a bug:

      "/var/lib/cobbler/snippets/yum_repo_cleanup"
      comment => "Add myself as yum repo server into snippet $(this.promiser)",
      edit_template => "$(this.promiser).tpl",
      classes => result_classes,
      handle => "cobbler_files_yum_snippet";

      yields:

      cf3> .........................................................
      cf3> Promise's handle: cobbler_files_yum_snippet
      cf3> Promise made by: "/var/lib/cobbler/snippets/yum_repo_cleanup"
      cf3>
      cf3> Comment: Add myself as yum repo server into snippet /var/lib/cobbler/snippets/yum_repo_cleanup
      cf3> .........................................................
      cf3>
      cf3> -> Using literal pathtype for /var/lib/cobbler/snippets/yum_repo_cleanup
      cf3> -> Handling file existence constraints on /var/lib/cobbler/snippets/yum_repo_cleanup
      cf3> -> Build file model from a blank slate (emptying)
      cf3> !! Unable to open template file "$(this.promiser).tpl" to make "/var/lib/cobbler/snippets/yum_repo_cleanup"

      It is clearly visible that the variable is expanded for the comment, but not for the edit_template. And it would be nice to detemine the template name directly from the promiser.

      Cheers,
      Sven

        Attachments

          Release management

            Issue Links

              Activity

                People

                Assignee:
                a10025 Volker Hilsheimer (Inactive)
                Reporter:
                svenxy Sven Hergenhahn
                Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                  Dates

                  Created:
                  Updated:
                  Resolved: