Skip to content

Commit

Permalink
fix create project bug (flyteorg#291)
Browse files Browse the repository at this point in the history
Signed-off-by: Yuvraj <code@evalsocket.dev>
  • Loading branch information
yindia authored Mar 11, 2022
1 parent c5dd11d commit 0deb501
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions cmd/config/subcommand/project/project_config.go
Original file line number Diff line number Diff line change
Expand Up @@ -56,10 +56,9 @@ func (c *ConfigProject) GetProjectSpec(id string) (*admin.Project, error) {
if err != nil {
return nil, err
}
if projectSpec.Id == id {
return &projectSpec, nil
if len(id) > 0 {
projectSpec.Id = id
}
projectSpec.Id = id
return &projectSpec, nil
}

Expand Down

0 comments on commit 0deb501

Please sign in to comment.