From b68117caaa50d62aff6903b5848e835c4de32780 Mon Sep 17 00:00:00 2001 From: Donnie Adams Date: Mon, 14 Aug 2023 09:38:30 -0400 Subject: [PATCH] Take the default context into account when printing project information The default context was being taken into account when displaying a project name, but not when determining the default project output. This change will take the default context into account for the default display. Signed-off-by: Donnie Adams --- pkg/cli/project.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/pkg/cli/project.go b/pkg/cli/project.go index 59b41e398..c132f52cc 100644 --- a/pkg/cli/project.go +++ b/pkg/cli/project.go @@ -119,9 +119,10 @@ func (a *Project) Run(cmd *cobra.Command, args []string) error { } } + projectName := project.RenderProjectName(projectItem.FullName, cfg.DefaultContext) out.WriteFormatted(projectEntry{ - Name: project.RenderProjectName(projectItem.FullName, cfg.DefaultContext), - Default: defaultProject == projectItem.FullName, + Name: projectName, + Default: defaultProject == projectName, Regions: supportedRegions, }, projectItem.Project) }