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

files promise that creates directory changes CWD

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Open
    • Priority: Medium
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: Promise type: files
    • Labels:
      None
    • Platform:
      N/A

      Description

      Current Working Directory (CWD) of the cf-agent process is changed when creating a new directory with a simple promise:

      <pre>
      files:
      "$(G.testdir)/." create => "true";
      </pre>

      This creates problems with functions/promises executed in the future and contain relative paths.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                a10040 Kristian Amlie
                Reporter:
                a10038 jimis (Dimitrios Apostolou)
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:

                  Summary Panel