From f886af89f22cc9ab9ecad4d92a44ae7cac4d4e95 Mon Sep 17 00:00:00 2001 From: den-rgb Date: Fri, 25 Oct 2024 15:53:37 +0100 Subject: [PATCH] OCM-12101 | fix: Adding log outputs for empty values --- cmd/create/network/cmd.go | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/cmd/create/network/cmd.go b/cmd/create/network/cmd.go index 9ee7a64f5..19145c35f 100644 --- a/cmd/create/network/cmd.go +++ b/cmd/create/network/cmd.go @@ -87,15 +87,18 @@ func NetworkRunner(userOptions *opts.NetworkUserOptions) rosa.CommandRunner { } if parsedParams["Name"] == "" { - r.Logger.Debugf("Name not provided, using default name %s", r.Creator.AccountID) + r.Reporter.Infof("Name not provided, using default name %s", r.Creator.AccountID) parsedParams["Name"] = "rosa-network-stack-" + r.Creator.AccountID } if parsedParams["Region"] == "" { - r.Logger.Debugf("Region not provided, using default region %s", r.AWSClient.GetRegion()) + r.Reporter.Infof("Region not provided, using default region %s", r.AWSClient.GetRegion()) parsedParams["Region"] = r.AWSClient.GetRegion() } // Extract the first non-`--param` argument to use as the template command + if len(argv) == 0 { + r.Reporter.Infof("Template command not provided, using default template %s", templateCommand) + } for _, arg := range argv { if !strings.HasPrefix(arg, "--param") { templateCommand = arg