Issue #22276 has been updated by Leonardo Mello. Status changed from Unreviewed to Rejected
This is not a puppet issue. ---------------------------------------- Bug #22276: puppet displays a bogus warning about escape characters https://projects.puppetlabs.com/issues/22276#change-97622 * Author: Thomas Vander Stichele * Status: Rejected * Priority: Normal * Assignee: * Category: * Target version: * Affected Puppet version: 3.2.2 * Keywords: * Branch: ---------------------------------------- I have the following file resource: file { '/etc/cron.d/backup-couchdb-feat': ensure => file, content => "# created by puppet 0 5 * * * root cd /srv/backup/couchdb/feat; echo `date` dumping feat >> /var/log/backup-couchdb-feat.log; couchdb-dump -u ${couchdb_username} -p ${couchdb_password} http://localhost:5985/feat 2>> /var/log/backup-couchdb-feat.log | gzip > couchdb-feat-`date +\%Y-\%m-\%d`.dump.gz " } When I apply the manifest with this resource, I get: Warning: Unrecognised escape sequence '\%' in file /etc/puppet/environments/development/dev/modules/credex/manifests/backup/couchdb.pp at line 20 Warning: Unrecognised escape sequence '\%' in file /etc/puppet/environments/development/dev/modules/credex/manifests/backup/couchdb.pp at line 20 Warning: Unrecognised escape sequence '\%' in file /etc/puppet/environments/development/dev/modules/credex/manifests/backup/couchdb.pp at line 20 The backslashes are needed to escape the date format string, puppet should not complain about them. This bug has been present since 2.6 until 3.2 -- You have received this notification because you have either subscribed to it, or are involved in it. To change your notification preferences, please click here: http://projects.puppetlabs.com/my/account -- You received this message because you are subscribed to the Google Groups "Puppet Bugs" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/puppet-bugs. For more options, visit https://groups.google.com/groups/opt_out.
