From b9af3bc37f34c0d8291e6cf79aa9adb595c2ec04 Mon Sep 17 00:00:00 2001 From: hkepley Date: Thu, 23 May 2024 10:32:31 -0400 Subject: [PATCH] OCM-6448 | fix: Fix actual UX issues --- cmd/rosa-support/create/subnets/cmd.go | 2 +- cmd/rosa-support/create/vpc/cmd.go | 2 +- cmd/rosa-support/delete/tag/cmd.go | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/cmd/rosa-support/create/subnets/cmd.go b/cmd/rosa-support/create/subnets/cmd.go index b734dd4..926d57b 100644 --- a/cmd/rosa-support/create/subnets/cmd.go +++ b/cmd/rosa-support/create/subnets/cmd.go @@ -22,7 +22,7 @@ var Cmd = &cobra.Command{ Short: "Create subnets", Long: "Create subnets.", Example: ` # Create a pair of subnets with prefix 'mysubnet-' in region 'us-east-2' - rosa-support create subnets --name-prefix=mysubnet --region us-east-2 --vpc-id --availability-zones `, + rosa-support create subnets --region us-east-2 --vpc-id --availability-zones `, Run: run, } diff --git a/cmd/rosa-support/create/vpc/cmd.go b/cmd/rosa-support/create/vpc/cmd.go index 0092f30..14c7c92 100644 --- a/cmd/rosa-support/create/vpc/cmd.go +++ b/cmd/rosa-support/create/vpc/cmd.go @@ -84,7 +84,7 @@ func run(cmd *cobra.Command, _ []string) { split := strings.Split(tag, ":") if len(split) == 2 { - tagMap[split[0]] = tagMap[split[1]] + tagMap[split[0]] = split[1] } else { tagMap[split[0]] = "" } diff --git a/cmd/rosa-support/delete/tag/cmd.go b/cmd/rosa-support/delete/tag/cmd.go index 6a29fd8..64ca2bc 100644 --- a/cmd/rosa-support/delete/tag/cmd.go +++ b/cmd/rosa-support/delete/tag/cmd.go @@ -20,7 +20,7 @@ var Cmd = &cobra.Command{ Short: "Delete tag", Long: "Delete tag.", Example: ` # Delete a tag from the resource - rosa-support delete tag --resource-id --region us-east-2 --tag-key key`, + rosa-support delete tag --resource-id --region us-east-2 --tag-key key`, Run: run, }