diff options
author | Noah Kantrowitz <noah@coderanger.net> | 2017-04-03 22:05:22 -0500 |
---|---|---|
committer | Noah Kantrowitz <noah@coderanger.net> | 2017-04-03 22:05:22 -0500 |
commit | e53c037b74298fb687d189ef575dc09568b771d4 (patch) | |
tree | 7ddbe15ae5524addab770c0d99ed6529f45db295 /lib/chef/resource/mount.rb | |
parent | b95a1bb1d167d31f56892baf7e424c146ebba0b4 (diff) | |
download | chef-e53c037b74298fb687d189ef575dc09568b771d4.tar.gz |
Fix the default on Mount#supports as some tests mutate it in-place.
Signed-off-by: Noah Kantrowitz <noah@coderanger.net>
Diffstat (limited to 'lib/chef/resource/mount.rb')
-rw-r--r-- | lib/chef/resource/mount.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/chef/resource/mount.rb b/lib/chef/resource/mount.rb index 2aca8432dd..7e601b861a 100644 --- a/lib/chef/resource/mount.rb +++ b/lib/chef/resource/mount.rb @@ -31,7 +31,7 @@ class Chef allowed_actions :mount, :umount, :unmount, :remount, :enable, :disable # this is a poor API please do not re-use this pattern - property :supports, Hash, default: { remount: false }, + property :supports, Hash, default: lazy { { remount: false } }, coerce: proc { |x| x.is_a?(Array) ? x.each_with_object({}) { |i, m| m[i] = true } : x } def initialize(name, run_context = nil) |