-
-
Notifications
You must be signed in to change notification settings - Fork 99
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
use stdlib::to_toml instead of toml gem #207
Conversation
04e66f1
to
e997cec
Compare
manifests/aggregator.pp
Outdated
@@ -19,7 +19,7 @@ | |||
|
|||
file { "${telegraf::config_folder}/${name}.conf": | |||
ensure => $_ensure, | |||
content => inline_template("<%= require 'toml-rb'; TomlRB.dump({'aggregators'=>{'${plugin_type}'=>@options}}) %>"), | |||
content => to_toml({ 'aggregators'=> { $plugin_type=> $options } }), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
steve@arch ~> puppet apply -e '$a = to_toml({'a' => 'b'})'
Warning: This function is deprecated, please use stdlib::to_toml instead. at ["unknown", 1]:["unknown", 0]
(location: /home/steve/.puppetlabs/etc/code/modules/stdlib/lib/puppet/functions/deprecation.rb:35:in `deprecation')
Notice: Compiled catalog for arch.lan in environment production in 0.02 seconds
Notice: Applied catalog in 0.02 seconds
However you may have done on purpose to avoid the stdlib bump to v9 at this time.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Indeed, because puppet/archive doesn't allow stdlib 9. We've a bit of a dependency problem on most modules that we need to sort out.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I released archive and we can now depend on stdlib 9 (I hope)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM with to_toml or stdlib::to_toml, as you wish.
apt deps. |
This requires puppetlabs/puppetlabs-apt#1113 |
Best to again once the stars have aligned.
Pull Request (PR) description
This Pull Request (PR) fixes the following issues