]> review.fuel-infra Code Review - puppet-modules/puppetlabs-apt.git/commit - manifests
Fix automatic coercion warning
authorRomain Tartière <romain@blogreen.org>
Fri, 26 Jan 2018 13:32:30 +0000 (14:32 +0100)
committerRomain Tartière <romain@blogreen.org>
Fri, 26 Jan 2018 13:36:32 +0000 (14:36 +0100)
commit60923a2e88b2df33fd0e80442fd3725ef83a023b
treec8ef5cd0fcfeee20cb447e1f825c128a428280ce
parent2df93f946c0cbf43d9b209993be89d67678e8035
Fix automatic coercion warning

Explicitly cast the return value of strftime() to an Integer to avoid
spamming the puppet server log file with warning messages:

Jan 26 14:19:13 <daemon.warn> marvin puppet-master[27147]: The string '1516972753' was automatically coerced to the numerical value 1516972753 at /usr/local/etc/puppet/environments/production/modules/apt/manifests/update.pp:17:27
Jan 26 14:19:25 <daemon.warn> marvin puppet-master[27147]: The string '1516972765' was automatically coerced to the numerical value 1516972765 at /usr/local/etc/puppet/environments/production/modules/apt/manifests/update.pp:17:27
Jan 26 14:19:55 <daemon.warn> marvin puppet-master[27147]: The string '1516972795' was automatically coerced to the numerical value 1516972795 at /usr/local/etc/puppet/environments/production/modules/apt/manifests/update.pp:17:27
Jan 26 14:20:15 <daemon.warn> marvin puppet-master[27147]: The string '1516972815' was automatically coerced to the numerical value 1516972815 at /usr/local/etc/puppet/environments/production/modules/apt/manifests/update.pp:17:27
manifests/update.pp