From bce4efdfcc5c40fdd610877fa115ef574cba7490 Mon Sep 17 00:00:00 2001 From: Ash <159829404+hedge-sparrow@users.noreply.github.com> Date: Wed, 16 Oct 2024 12:09:42 +0100 Subject: [PATCH] Populate flag variables (#430) Fixes a bug where the customer flag was being ignored --- cli/cmd/customer_download_license.go | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/cli/cmd/customer_download_license.go b/cli/cmd/customer_download_license.go index 38a9d23c..67095ff7 100644 --- a/cli/cmd/customer_download_license.go +++ b/cli/cmd/customer_download_license.go @@ -32,7 +32,16 @@ You must specify the customer using either their name or ID with the --customer # Download license for a customer in a specific app (if you have multiple apps) replicated customer download-license --app myapp --customer "Acme Inc" --output license.yaml`, - RunE: func(cmd *cobra.Command, args []string) error { + RunE: func(cmd *cobra.Command, args []string) (err error) { + + if customer, err = cmd.Flags().GetString("customer"); err != nil { + return err + } + + if output, err = cmd.Flags().GetString("output"); err != nil { + return err + } + return r.downloadCustomerLicense(cmd, customer, output) }, SilenceUsage: true,