Skip to content

Commit

Permalink
support projectid in gcp provider (#2129)
Browse files Browse the repository at this point in the history
Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
  • Loading branch information
AlekseyBlokhin and mergify[bot] authored Jun 22, 2023
1 parent 8161996 commit c2f22f8
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions pkg/blockstorage/gcepd/gcepd.go
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,9 @@ func NewProvider(config map[string]string) (blockstorage.Provider, error) {
if err != nil {
return nil, err
}
if projectID, ok := config[blockstorage.GoogleProjectID]; ok {
gCli.ProjectID = projectID
}
return &GpdStorage{
service: gCli.Service,
project: gCli.ProjectID}, nil
Expand Down

0 comments on commit c2f22f8

Please sign in to comment.