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

connection should be a reserved container (bundle) name

    XMLWordPrintable

    Details

      Description

      I did a quick review of reserved container names (see special variables). I found that the agent lets me define bundle common connection. I expected that it would error for use of a reserved container name as is the case for other special variable scopes (mon, const, match, edit, this, and sys). bundle common def works (but that is expected and known, it's listed in special variables because of some default vaules and augments).

      error: Use of a reserved container name as a bundle name "sys"
      error: Use of a reserved container name as a bundle name "this"
      error: Use of a reserved container name as a bundle name "edit"
      error: Use of a reserved container name as a bundle name "match"
      error: Use of a reserved container name as a bundle name "const"
      error: Use of a reserved container name as a bundle name "mon"

      This policy illustrates failure to error when bundle named connection is defined.

      Example Policy
      bundle agent __main__
      {
        reports: "Hello";
      }
      bundle common connection
      {
      }
      
      R: Hello

        Attachments

          Activity

            People

            Assignee:
            Unassigned Unassigned
            Reporter:
            a10042 Nick Anderson
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated: