From 51658743180561ec10dcb5aa371f153f8caf5b5c Mon Sep 17 00:00:00 2001 From: "R.B. Boyer" Date: Fri, 1 Feb 2019 09:16:36 -0600 Subject: [PATCH] incorrect examples for 'consul acl policy' commands (#5303) --- command/acl/acl.go | 2 +- command/acl/policy/policy.go | 8 ++++---- website/source/docs/commands/acl.html.md | 2 +- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/command/acl/acl.go b/command/acl/acl.go index 1b1f5491ae..649c2027fe 100644 --- a/command/acl/acl.go +++ b/command/acl/acl.go @@ -41,7 +41,7 @@ Usage: consul acl [options] [args] Create a new ACL Policy: - $ consul acl policy create "new-policy" \ + $ consul acl policy create -name "new-policy" \ -description "This is an example policy" \ -datacenter "dc1" \ -datacenter "dc2" \ diff --git a/command/acl/policy/policy.go b/command/acl/policy/policy.go index 97c6f87703..9dd29daa55 100644 --- a/command/acl/policy/policy.go +++ b/command/acl/policy/policy.go @@ -33,7 +33,7 @@ Usage: consul acl policy [options] [args] Create a new ACL Policy: - $ consul acl policy create "new-policy" \ + $ consul acl policy create -name "new-policy" \ -description "This is an example policy" \ -datacenter "dc1" \ -datacenter "dc2" \ @@ -44,15 +44,15 @@ Usage: consul acl policy [options] [args] Update a policy: - $ consul acl policy update "other-policy" -datacenter "dc1" + $ consul acl policy update -name "other-policy" -datacenter "dc1" Read a policy: - $ consul acl policy read 0479e93e-091c-4475-9b06-79a004765c24 + $ consul acl policy read -id 0479e93e-091c-4475-9b06-79a004765c24 Delete a policy - $ consul acl policy delete "my-policy" + $ consul acl policy delete -name "my-policy" For more examples, ask for subcommand help or view the documentation. ` diff --git a/website/source/docs/commands/acl.html.md b/website/source/docs/commands/acl.html.md index 664429e51f..b9a9195560 100644 --- a/website/source/docs/commands/acl.html.md +++ b/website/source/docs/commands/acl.html.md @@ -81,7 +81,7 @@ Usage: consul acl [options] [args] Create a new ACL Policy: - $ consul acl policy create "new-policy" \ + $ consul acl policy create -name "new-policy" \ -description "This is an example policy" \ -datacenter "dc1" \ -datacenter "dc2" \