From bdec5621106cc8cef327c34802ab4b12cae3099b Mon Sep 17 00:00:00 2001 From: "Ian C. Ward" Date: Tue, 2 May 2017 17:32:37 -0400 Subject: [PATCH] making changes per GH-429 feedback --- recipes/disk.rb | 6 +++--- spec/integrations/disk_spec.rb | 12 ++++++------ 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/recipes/disk.rb b/recipes/disk.rb index 65964f1d..8dee315c 100644 --- a/recipes/disk.rb +++ b/recipes/disk.rb @@ -14,7 +14,7 @@ # example configuration: # node['datadog']['disk']['instances'] = [ # { -# 'use_mount' => 'yes', +# 'use_mount' => true, # 'excluded_filesystems' => [ # 'tmpfs' # ], @@ -23,9 +23,9 @@ # '/dev/sda2' # ], # 'excluded_disk_re' => '/dev/sde.*', -# 'tag_by_filesystem' => 'no', +# 'tag_by_filesystem' => false, # 'excluded_mountpoint_re' => '/mnt/somebody-elses-problem.*', -# 'all_partitions' => 'no' +# 'all_partitions' => false # } # ] diff --git a/spec/integrations/disk_spec.rb b/spec/integrations/disk_spec.rb index f7f996a9..9f50c3e9 100644 --- a/spec/integrations/disk_spec.rb +++ b/spec/integrations/disk_spec.rb @@ -3,16 +3,16 @@ init_config: {} instances: - - use_mount: 'yes' + - use_mount: true excluded_filesystems: - tmpfs excluded_disks: - /dev/sda1 - /dev/sda2 excluded_disk_re: '/dev/sde.*' - tag_by_filesystem: 'no' + tag_by_filesystem: false excluded_mountpoint_re: '/mnt/somebody-elses-problem.*' - all_partitions: 'no' + all_partitions: false EOF cached(:chef_run) do @@ -23,13 +23,13 @@ disk: { instances: [ { - use_mount: 'yes', + use_mount: true, excluded_filesystems: ['tmpfs'], excluded_disks: ['/dev/sda1', '/dev/sda2'], excluded_disk_re: '/dev/sde.*', - tag_by_filesystem: 'no', + tag_by_filesystem: false, excluded_mountpoint_re: '/mnt/somebody-elses-problem.*', - all_partitions: 'no' + all_partitions: false } ] }