summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorTim Smith <tsmith84@gmail.com>2020-04-25 08:40:37 -0700
committerTim Smith <tsmith84@gmail.com>2020-04-25 08:49:46 -0700
commitdaa2c60ca96cad14fd8b1f2b4b7d55129a1d579a (patch)
treef9f1a32b017afa0118007fe2bb69106c08d85313 /lib
parent4b9492cf2d18c39255ebdeb806d37777c464b7ee (diff)
downloadchef-daa2c60ca96cad14fd8b1f2b4b7d55129a1d579a.tar.gz
Allow Arrays in msu_package version again
This is a bug, but we're going to need to live with it for now. Signed-off-by: Tim Smith <tsmith@chef.io>
Diffstat (limited to 'lib')
-rw-r--r--lib/chef/resource/msu_package.rb7
1 files changed, 6 insertions, 1 deletions
diff --git a/lib/chef/resource/msu_package.rb b/lib/chef/resource/msu_package.rb
index 29a9538995..0ef7908515 100644
--- a/lib/chef/resource/msu_package.rb
+++ b/lib/chef/resource/msu_package.rb
@@ -37,7 +37,12 @@ class Chef
description: "An optional property to set the package name if it differs from the resource block's name.",
identity: true
- property :version, String,
+ # This is the same property as the main package resource except it has the skip docs set to true
+ # This resource abuses the package resource by storing the versions of all the cabs in the MSU file
+ # in the version attribute from load current value even though those aren't technically the versio of the
+ # msu. Since the user wouldn't actually set this we don't want it on the docs site.
+ property :version, [String, Array],
+ skip_docs: true,
description: "The version of a package to be installed or upgraded."
property :source, String,