Skip to content

Commit

Permalink
Merge pull request #4334 from patrickdillon/survey-ctrl-c
Browse files Browse the repository at this point in the history
Bug 1855351: Handle CTRL+C in GCP survey
  • Loading branch information
openshift-merge-robot committed Nov 4, 2020
2 parents 9af0315 + 1a3f2cc commit 45dab38
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion pkg/asset/installconfig/gcp/gcp.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,9 @@ func Platform() (*gcp.Platform, error) {
}

region, err := selectRegion(project)
if err != nil {
return nil, err
}

return &gcp.Platform{
ProjectID: project,
Expand Down Expand Up @@ -75,7 +78,7 @@ func selectProject(ctx context.Context) (string, error) {
}, &selectedProject)

selectedProject = ids[selectedProject]
return selectedProject, nil
return selectedProject, err
}

func selectRegion(project string) (string, error) {
Expand Down

0 comments on commit 45dab38

Please sign in to comment.