Skip to content

Commit

Permalink
OCM-10757 | fix un-recognized key flag
Browse files Browse the repository at this point in the history
  • Loading branch information
xueli181114 committed Aug 29, 2024
1 parent 01477af commit 73fd089
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions cmd/rosa-support/tag/cmd.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ var Cmd = &cobra.Command{
Short: "tag a resource",
Long: "Tag a resource with the resource ID",
Example: ` #Tag a vpc with vpc ID
ocmqe tag --resource-id <vpc id> --tags tag1:tagv,tag2:tagv2`,
rosa-support tag --resource-id <vpc id> --tags tag1:tagv,tag2:tagv2 --region <region>`,

Run: run,
}
Expand All @@ -32,26 +32,26 @@ func init() {
"resource-id",
"",
"",
"resource ID",
"resource ID tried to tag",
)
flags.StringVarP(
&args.region,
"region",
"",
"",
"region ID",
"region ID where the resource located",
)
flags.StringVarP(
&args.tags,
"tags",
"",
"",
"key of the tag",
"tags going to be used to tag resource. The fommat should follow --tags tag1:tagv,tag2:tagv2",
)

requiredFlags := []string{
"resource-id",
"key",
"tags",
"region",
}
for _, requiredFlag := range requiredFlags {
Expand Down

0 comments on commit 73fd089

Please sign in to comment.