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-28 11:03:26 -0800
commitf870ec5c2c684f8fccb805d444cbb97b2f1ace2d (patch)
tree1fc5debfb7311c8022cbf460d7324be9c74a1b68
parentde71b21a9ed8ea6725f8e4e1eafada0943a33fee (diff)
downloadchef-f870ec5c2c684f8fccb805d444cbb97b2f1ace2d.tar.gz
apt_repository: add a description for components when using a PPA
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..ed29de0652 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: "'main' if using a PPA repository."
property :arch, [String, nil, FalseClass],
description: "Constrain packages to a particular CPU architecture such as 'i386' or 'amd64'."