summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim Smith <tsmith84@gmail.com>2020-05-07 12:20:50 -0700
committerTim Smith <tsmith84@gmail.com>2020-05-07 12:21:59 -0700
commit5dafe610c1c2b19a9b6aa965c90103058f76f73c (patch)
tree6f1fa8657daec153d3c8d90748d718f96b25bf6c
parentac1a9a8899eac6ebd71261c1d2a38ffac8093be0 (diff)
downloadchef-5dafe610c1c2b19a9b6aa965c90103058f76f73c.tar.gz
Only require the driver_name property when creating printer ports
This restores the previous behavior Signed-off-by: Tim Smith <tsmith@chef.io>
-rw-r--r--lib/chef/resource/windows_printer.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/chef/resource/windows_printer.rb b/lib/chef/resource/windows_printer.rb
index 7dba197bb1..e5cc0ea6f7 100644
--- a/lib/chef/resource/windows_printer.rb
+++ b/lib/chef/resource/windows_printer.rb
@@ -62,7 +62,7 @@ class Chef
property :driver_name, String,
description: "The exact name of printer driver installed on the system.",
- required: true
+ required: [:create]
property :location, String,
description: "Printer location, such as `Fifth floor copy room`."