summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNoah Kantrowitz <noah@coderanger.net>2017-04-03 22:05:22 -0500
committerNoah Kantrowitz <noah@coderanger.net>2017-04-03 22:05:22 -0500
commite53c037b74298fb687d189ef575dc09568b771d4 (patch)
tree7ddbe15ae5524addab770c0d99ed6529f45db295
parentb95a1bb1d167d31f56892baf7e424c146ebba0b4 (diff)
downloadchef-e53c037b74298fb687d189ef575dc09568b771d4.tar.gz
Fix the default on Mount#supports as some tests mutate it in-place.
Signed-off-by: Noah Kantrowitz <noah@coderanger.net>
-rw-r--r--lib/chef/resource/mount.rb2
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)