You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@dlab.apache.org by lf...@apache.org on 2020/02/20 08:30:21 UTC
[incubator-dlab] 04/04: DLAB-1531 added some prints for testing
This is an automated email from the ASF dual-hosted git repository.
lfrolov pushed a commit to branch DLAB-1531
in repository https://gitbox.apache.org/repos/asf/incubator-dlab.git
commit 2f3dbdffe244449888662763b7f39a557bdd58c8
Author: leonidfrolov <fr...@gmail.com>
AuthorDate: Thu Feb 20 10:29:52 2020 +0200
DLAB-1531 added some prints for testing
---
infrastructure-provisioning/src/general/lib/gcp/actions_lib.py | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/infrastructure-provisioning/src/general/lib/gcp/actions_lib.py b/infrastructure-provisioning/src/general/lib/gcp/actions_lib.py
index aefc902..8657b78 100644
--- a/infrastructure-provisioning/src/general/lib/gcp/actions_lib.py
+++ b/infrastructure-provisioning/src/general/lib/gcp/actions_lib.py
@@ -190,9 +190,11 @@ class GCPActions:
def add_bucket_label(self, bucket_name, key , value):
try:
+ print('----------adding tags to bucket: ' + bucket_name)
bucket = self.storage_client.get_bucket(bucket_name)
-
labels = bucket.labels
+ print('labels:')
+ print(labels)
labels[key] = '{}'.format(value)
bucket.labels = labels
bucket.patch()
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@dlab.apache.org
For additional commands, e-mail: commits-help@dlab.apache.org