Skip to content

Commit

Permalink
Provider update should let back end infer the project ID (#3680)
Browse files Browse the repository at this point in the history
We're able to infer which project ID to use if it's not specified
explicitly by inferring who the caller is and using their "root"
project.
  • Loading branch information
jhrozek authored Jun 20, 2024
1 parent 7e63c4b commit d847d86
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions cmd/cli/app/provider/provider_update.go
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,6 @@ import (

var (
errMissingProviderName = errors.New("provider name flag is missing")
errMissingProject = errors.New("project flag is missing")
)

var updateCmd = &cobra.Command{
Expand Down Expand Up @@ -135,12 +134,6 @@ func UpdateProviderCommand(
)
}
project := viper.GetString("project")
if project == "" {
return cli.MessageAndError(
"invalid option",
errMissingProject,
)
}

fields := make(map[string]any)

Expand Down

0 comments on commit d847d86

Please sign in to comment.