summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLamont Granquist <lamont@scriptkiddie.org>2020-04-17 15:52:50 -0700
committerLamont Granquist <lamont@scriptkiddie.org>2020-04-17 16:23:51 -0700
commit4fc5f4cc93e252bea005a1822b5a9220734e659c (patch)
tree061b5e648c74c87ac1060b43896be9ff191823d8
parent49aa17ad9805b6949baaa37cfe66f8cf2b8083a8 (diff)
downloadchef-lcg/required-properties-chef-16.tar.gz
The value property in windows_env is not required for deletelcg/required-properties-chef-16
Good example of why this is breaking, but this is better. Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
-rw-r--r--lib/chef/resource/windows_env.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/chef/resource/windows_env.rb b/lib/chef/resource/windows_env.rb
index b7f347b80b..8f551df9f9 100644
--- a/lib/chef/resource/windows_env.rb
+++ b/lib/chef/resource/windows_env.rb
@@ -36,7 +36,7 @@ class Chef
property :value, String,
description: "The value of the environmental variable to set.",
- required: true
+ required: %i{create modify}
property :delim, [ String, nil, false ],
description: "The delimiter that is used to separate multiple values for a single key.",