summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThom May <thom@chef.io>2018-02-12 16:33:32 +0000
committerThom May <thom@chef.io>2018-03-08 11:32:15 +0000
commitbdd124437898927df9e9f7934a08bba0da58edc5 (patch)
treebc16e8f2e32bd23be18dacffeb7cced6171dad64
parentc6744e65c51c79481a59f5af183e369ccdca4760 (diff)
downloadchef-tm/backport_resource_enhancements.tar.gz
hide validation_message from serializationtm/backport_resource_enhancements
Signed-off-by: Thom May <thom@chef.io>
-rw-r--r--lib/chef/resource.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/chef/resource.rb b/lib/chef/resource.rb
index da75f59a69..743619585d 100644
--- a/lib/chef/resource.rb
+++ b/lib/chef/resource.rb
@@ -1179,8 +1179,8 @@ class Chef
# Internal Resource Interface (for Chef)
#
- FORBIDDEN_IVARS = [:@run_context, :@not_if, :@only_if, :@enclosing_provider, :@description, :@introduced, :@examples]
- HIDDEN_IVARS = [:@allowed_actions, :@resource_name, :@source_line, :@run_context, :@name, :@not_if, :@only_if, :@elapsed_time, :@enclosing_provider, :@description, :@introduced, :@examples]
+ FORBIDDEN_IVARS = [:@run_context, :@not_if, :@only_if, :@enclosing_provider, :@description, :@introduced, :@examples, :@validation_message]
+ HIDDEN_IVARS = [:@allowed_actions, :@resource_name, :@source_line, :@run_context, :@name, :@not_if, :@only_if, :@elapsed_time, :@enclosing_provider, :@description, :@introduced, :@examples, :@validation_message]
include Chef::Mixin::ConvertToClassName
extend Chef::Mixin::ConvertToClassName