From 9085e6eed6d8f0d260d8feae60e00808e989ccfd Mon Sep 17 00:00:00 2001 From: irhndt 4fk Date: Sat, 7 Dec 2024 17:21:29 +0000 Subject: [PATCH] temporary fix: default if remote.Project is "" --- cmd/incus/project.go | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/cmd/incus/project.go b/cmd/incus/project.go index 3779a10566f..d93bd38ee9e 100644 --- a/cmd/incus/project.go +++ b/cmd/incus/project.go @@ -1184,7 +1184,10 @@ func (c *cmdProjectGetCurrent) Run(cmd *cobra.Command, args []string) error { if !ok { return fmt.Errorf(i18n.G("Remote %s doesn't exist"), conf.DefaultRemote) } - - fmt.Println(remote.Project) + if remote.Project == "" { + fmt.Println("default") + } else { + fmt.Println(remote.Project) + } return nil }