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: Higher
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: Promise type: files
    • Labels:
      None
    • Story Points:
      5

      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:
              Unassigned Unassigned
              Reporter:
              a10038 jimis (Dimitrios Apostolou)
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Dates

                Created:
                Updated: