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

mount promises act differently with {} and () variable markers

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Done
    • Priority: Medium
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 3.6.6, 3.9.0 beta
    • Component/s: Evaluation
    • Labels:
      None

      Description

      Reported by customer. Needs to be addressed in 3.6.x.

      See Zendesk ticket for full policy.

      <pre>
      "pop_name" string => "joe";

      1. "nfs_host" string => "mymachine.net";
        "nfs_host" string => "10.1.2.3";

      "opt_stage" slist => { "/opt/stage", "${nfs_host}", "/vol/stage", "${g.nfs_rw}" };
      </pre>

      In the @storage@ promise "${nfs_host}" would not evaluate to the string "mymachine.net" but would evaluate to the string "10.1.2.3" if using curly braces. If I changed the syntax to use parenthesis it would evaluate to the hostname string.

        Attachments

          Activity

            People

            • Assignee:
              a10003 Eystein Maloy Stenberg
              Reporter:
              jiraadmin Old User (Inactive)
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Summary Panel