-
Notifications
You must be signed in to change notification settings - Fork 59
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
switching from toml-rb to toml gem #43
Conversation
thanks @codylewandowski, reviewing this now |
Looks good, thanks again! 👍 |
Thanks for the quick release too @fishnix! You rock! |
Hi @fishnix @codylewandowski this commit seems to break existing behaviour when generating TOML from a ruby hash: Given a ruby hash example: foo = {
"cpu" => {
'percpu' => true,
'totalcpu' => true,
'fielddrop' => [ 'time_*' ]
},
"disk" => {
'ignore_fs' => [ "tmpfs", "devtmpfs" ],
'tagexclude' => ['fstype', 'path', 'device']
},
"diskio" => {},
"mem" => {},
"net" => {},
"swap" => {},
"system" => {}
} Expected output (when using toml-rb):
Actual output (now using toml):
As can be seen above empty hash keys result in no Telegraf config. Do you want me to open an issue against this? |
This reverts commit 6c1e482. See comment on upstream PR for this commit: NorthPage#43
See comment on NorthPage#43 TOML class was renamed to TomlRB in a recent release, update.
See comment on NorthPage#43 TOML class was renamed to TomlRB in a recent release, update.
sorry for not replying to earlier PR. I fixed the issue @joshmyers refers to in phromo@17bb8b6 I've just become a father to a lovely daughter and don't have much time for computers atm :) |
Thank you @phromo, your fix in that fork of yours was the solution to a non-work-hours upgrade failure for our telegraf wrapper cookbook in prod! Though, it looks like this is still broken in master here, given that the defaults in the attributes file still defaults to => {}. |
@joshmyers @phromo @jrg72 I just opened #46 to address these issues. Sorry for the delay in response! |
This is a potential replacement to #39 and a fix to #41. I tested this in combination with the latest version of https://github.com/bdangit/chef-influxdb and everything worked as expected.