You are viewing a plain text version of this content. The canonical link for it is here.
Posted to github@beam.apache.org by GitBox <gi...@apache.org> on 2022/02/18 10:40:57 UTC
[GitHub] [beam] KhaninArtur commented on a change in pull request #16880: [BEAM-13963][Playground] Get bucket name from environment variable
KhaninArtur commented on a change in pull request #16880:
URL: https://github.com/apache/beam/pull/16880#discussion_r809879368
##########
File path: playground/backend/internal/cloud_bucket/precompiled_objects.go
##########
@@ -229,7 +228,11 @@ func (cd *CloudStorage) getPrecompiledObjectsDirs(ctx context.Context, targetSdk
break
}
if err != nil {
- return nil, fmt.Errorf("Bucket(%q).Objects: %v", BucketName, err)
+ bucketAttrs, errWithAttrs := bucket.Attrs(ctx)
+ if errWithAttrs != nil {
+ return nil, fmt.Errorf("rrror during receiving bucket's attributes: %s", err)
Review comment:
```suggestion
return nil, fmt.Errorf("Error during receiving bucket's attributes: %s", err)
```
##########
File path: playground/backend/internal/environment/application.go
##########
@@ -99,17 +99,21 @@ type ApplicationEnvs struct {
// pipelinesFolder is name of folder in which the pipelines resources are stored
pipelinesFolder string
+
+ // bucketName is a name of the GCS's bucket
Review comment:
```suggestion
// bucketName is a name of the GCS bucket with examples
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: github-unsubscribe@beam.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org