diff options
author | Tim Smith <tsmith@chef.io> | 2020-04-25 08:54:20 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-04-25 08:54:20 -0700 |
commit | c57b9c78034074edbd61dfc5cb97f86ad4149f82 (patch) | |
tree | f9f1a32b017afa0118007fe2bb69106c08d85313 | |
parent | 4b9492cf2d18c39255ebdeb806d37777c464b7ee (diff) | |
parent | daa2c60ca96cad14fd8b1f2b4b7d55129a1d579a (diff) | |
download | chef-c57b9c78034074edbd61dfc5cb97f86ad4149f82.tar.gz |
Merge pull request #9730 from chef/msu
Allow Arrays in msu_package version again
-rw-r--r-- | lib/chef/resource/msu_package.rb | 7 |
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, |