Skip to content

Commit

Permalink
temporary fix: default if remote.Project is ""
Browse files Browse the repository at this point in the history
  • Loading branch information
irhndt committed Dec 7, 2024
1 parent f6628ea commit 9085e6e
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions cmd/incus/project.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

0 comments on commit 9085e6e

Please sign in to comment.