Skip to content

Commit

Permalink
Fix GCE vs GCP typo
Browse files Browse the repository at this point in the history
The code was setting "gcp" when the chart takes "gce"

Signed-off-by: Alex Ellis (OpenFaaS Ltd) <[email protected]>
  • Loading branch information
alexellis committed Feb 11, 2020
1 parent 017d356 commit d7d1e59
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions cmd/apps/inletsoperator_app.go
Original file line number Diff line number Diff line change
Expand Up @@ -202,11 +202,11 @@ func getInletsOperatorOverrides(command *cobra.Command) (map[string]string, erro
}

if provider == "gce" {
gcpProjectID, err := command.Flags().GetString("project-id")
gceProjectID, err := command.Flags().GetString("project-id")
if err != nil {
return overrides, err
}
overrides["gcpProjectId"] = gcpProjectID
overrides["gceProjectId"] = gceProjectID

zone, err := command.Flags().GetString("zone")
if err != nil {
Expand All @@ -218,7 +218,7 @@ func getInletsOperatorOverrides(command *cobra.Command) (map[string]string, erro
return overrides, fmt.Errorf("zone is required for provider %s", provider)
}

if len(gcpProjectID) == 0 {
if len(gceProjectID) == 0 {
return overrides, fmt.Errorf("project-id is required for provider %s", provider)
}
} else if provider == "packet" {
Expand Down

0 comments on commit d7d1e59

Please sign in to comment.