From bdd124437898927df9e9f7934a08bba0da58edc5 Mon Sep 17 00:00:00 2001 From: Thom May Date: Mon, 12 Feb 2018 16:33:32 +0000 Subject: hide validation_message from serialization Signed-off-by: Thom May --- lib/chef/resource.rb | 4 ++-- 1 file 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 -- cgit v1.2.1