Uploaded image for project: 'Puppet'
  1. Puppet
  2. PUP-10287

mailalias always performs a "change" when value has a comma

    XMLWordPrintable

Details

    • Night's Watch
    • 0
    • NW - 2020-02-19
    • Bug Fix
    • do not use comma as mail alias record field separator when surrounded by double quotes

    Description

      I'm using puppet 2.7 and on one node, I have a mailalias resource to
      setup something for redmine like the following:

          mailalias {
              "redmine":
                  recipient =>
      '|/usr/share/redmine/extra/mail_handler/sub-mailhandler.py -e
      redmine@redmine.example.com -- /usr/share/redmine/extra/mail_handler/rdm-mailhandler.rb --url https://redmine.example.com --key somerandomalphanumstring --no-check-certificate --unknown-user accept --no-permission-check --allow-override project,tracker,category,priority,status';
          }
      

      puppet is always refreshing the alias for no reason. changing the value
      to the same thing.

      after doing some more testing, I found out that mailalias bugs in the above manner as soon as there is a comma in the recipient parameter value (e.g. with "...project" it's ok but with "...project," I start seeing the issue).

      Attachments

        Issue Links

          Activity

            People

              ciprian.badescu Ciprian Badescu
              ciprian.badescu Ciprian Badescu
              Eric Thompson Eric Thompson
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Zendesk Support