summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim Smith <tsmith84@gmail.com>2020-01-27 13:28:01 -0800
committerTim Smith <tsmith84@gmail.com>2020-01-27 13:28:01 -0800
commit26ee51459cf7df669981cf3c7185001c5eeba9d8 (patch)
tree6687cf7a5853160238dc82d78670c5c640ab1207
parent8b78fe904689dd6539e308fb87bffe103fb852f1 (diff)
downloadchef-26ee51459cf7df669981cf3c7185001c5eeba9d8.tar.gz
apt_repository: add a description for components when using a PPAppa_default_description
When you're using a PPA there's a default here that doesn't apply to non-PPA repos. Signed-off-by: Tim Smith <tsmith@chef.io>
-rw-r--r--lib/chef/resource/apt_repository.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/chef/resource/apt_repository.rb b/lib/chef/resource/apt_repository.rb
index 2fefded6fd..4c23c5bdb5 100644
--- a/lib/chef/resource/apt_repository.rb
+++ b/lib/chef/resource/apt_repository.rb
@@ -120,7 +120,7 @@ class Chef
property :components, Array,
description: "Package groupings, such as 'main' and 'stable'.",
- default: lazy { [] }
+ default: lazy { [] }, default_description: "If using a PPA this will be 'main'."
property :arch, [String, nil, FalseClass],
description: "Constrain packages to a particular CPU architecture such as 'i386' or 'amd64'."