cmd/upspin-setupstorage-gcp: remove unused parameter in call to createServiceAccount
Change-Id: Id837ca19221bdf09ab0c7b4e12770f2963e7694d
Reviewed-on: https://upspin-review.googlesource.com/9522
Reviewed-by: Andrew Gerrand <adg@golang.org>
diff --git a/cmd/upspin-setupstorage-gcp/setupstorage.go b/cmd/upspin-setupstorage-gcp/setupstorage.go
index 156e904..6bfc21d 100644
--- a/cmd/upspin-setupstorage-gcp/setupstorage.go
+++ b/cmd/upspin-setupstorage-gcp/setupstorage.go
@@ -83,7 +83,7 @@
cfgPath := filepath.Join(*where, *domain)
cfg := s.ReadServerConfig(cfgPath)
- email, privateKeyData := s.createServiceAccount(*project, cfgPath)
+ email, privateKeyData := s.createServiceAccount(*project)
s.createBucket(*project, email, bucket)
@@ -100,7 +100,7 @@
s.ExitNow()
}
-func (s *state) createServiceAccount(project, cfgPath string) (email, privateKeyData string) {
+func (s *state) createServiceAccount(project string) (email, privateKeyData string) {
client, err := google.DefaultClient(context.Background(), iam.CloudPlatformScope)
if err != nil {
// TODO: ask the user to run 'gcloud auth application-default login'