summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim Smith <tsmith@chef.io>2021-10-21 12:21:59 -0700
committerGitHub <noreply@github.com>2021-10-21 12:21:59 -0700
commit6bd4941f3310c80e0f0041a65d8efc70fd9c7c5e (patch)
tree4a034c3047dfeb5acde4bc076609471b149e9c96
parent61b289fdba8009fb77787b860b415475645c35d9 (diff)
parenta7f77d2744f3ca168f01fcaa038348cabb2ec0fd (diff)
downloadchef-6bd4941f3310c80e0f0041a65d8efc70fd9c7c5e.tar.gz
Merge pull request #12190 from collinmcneese/cm/cookbook_artifacts_acl
Add cookbook_artifacts as valid knife acl object type
-rw-r--r--knife/lib/chef/knife/acl_base.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/knife/lib/chef/knife/acl_base.rb b/knife/lib/chef/knife/acl_base.rb
index 0835d1ac05..d0ceb4c1d8 100644
--- a/knife/lib/chef/knife/acl_base.rb
+++ b/knife/lib/chef/knife/acl_base.rb
@@ -25,7 +25,7 @@ class Chef
PERM_TYPES = %w{create read update delete grant}.freeze unless defined? PERM_TYPES
MEMBER_TYPES = %w{client group user}.freeze unless defined? MEMBER_TYPES
- OBJECT_TYPES = %w{clients containers cookbooks data environments groups nodes roles policies policy_groups}.freeze unless defined? OBJECT_TYPES
+ OBJECT_TYPES = %w{clients containers cookbook_artifacts cookbooks data environments groups nodes roles policies policy_groups}.freeze unless defined? OBJECT_TYPES
OBJECT_NAME_SPEC = /^[\-[:alnum:]_\.]+$/.freeze unless defined? OBJECT_NAME_SPEC
def validate_object_type!(type)