remove logic to get a gcp project

Signed-off-by: Shubheksha Jalan <jshubheksha@gmail.com>
This commit is contained in:
Shubheksha Jalan
2018-10-11 21:23:30 +02:00
parent 7c3f4ddd74
commit 611bc92695
2 changed files with 0 additions and 11 deletions

View File

@@ -67,7 +67,6 @@ To integrate Heptio Ark with GCP, create an Ark-specific [Service Account][15]:
compute.snapshots.create
compute.snapshots.useReadOnly
compute.snapshots.delete
compute.projects.get
)
gcloud iam roles create heptio_ark.server \

View File

@@ -64,16 +64,6 @@ func (b *blockStore) Init(config map[string]string) error {
return errors.WithStack(err)
}
// validate connection
res, err := gce.Projects.Get(project).Do()
if err != nil {
return errors.WithStack(err)
}
if res == nil {
return errors.Errorf("error getting project %q", project)
}
b.gce = gce
b.project = project