From 9dca708201bc8a061507f29bd39ddaa975b99e99 Mon Sep 17 00:00:00 2001 From: Ellie Date: Thu, 1 Dec 2022 14:42:40 -0600 Subject: [PATCH] Fix vault cli namespace patch examples (#18143) * fix vault cli namespace patch examples * add changelog * Update changelog/18143.txt Co-authored-by: davidadeleon <56207066+davidadeleon@users.noreply.github.com> Co-authored-by: davidadeleon <56207066+davidadeleon@users.noreply.github.com> --- changelog/18143.txt | 3 +++ command/namespace_patch.go | 4 ++-- 2 files changed, 5 insertions(+), 2 deletions(-) create mode 100644 changelog/18143.txt diff --git a/changelog/18143.txt b/changelog/18143.txt new file mode 100644 index 000000000..b1ff7f37d --- /dev/null +++ b/changelog/18143.txt @@ -0,0 +1,3 @@ +```release-note:bug +command/namespace: Fix vault cli namespace patch examples in help text. +``` \ No newline at end of file diff --git a/command/namespace_patch.go b/command/namespace_patch.go index b404743a2..3ae6f6bc8 100644 --- a/command/namespace_patch.go +++ b/command/namespace_patch.go @@ -37,11 +37,11 @@ Usage: vault namespace patch [options] PATH Patch an existing child namespace by adding and removing custom-metadata (e.g. ns1/): - $ vault namespace patch ns1 -custom-metadata=foo=abc -remove-custom-metadata=bar + $ vault namespace patch -custom-metadata=foo=abc -remove-custom-metadata=bar ns1 Patch an existing child namespace from a parent namespace (e.g. ns1/ns2/): - $ vault namespace patch -namespace=ns1 ns2 -custom-metadata=foo=abc + $ vault namespace patch -namespace=ns1 -custom-metadata=foo=abc ns2 ` + c.Flags().Help()