Sfoglia il codice sorgente

Warn user when bucket is created

DricomDragon 4 anni fa
parent
commit
122c4835f8
1 ha cambiato i file con 1 aggiunte e 0 eliminazioni
  1. 1 0
      boto-updater.py

+ 1 - 0
boto-updater.py

@@ -13,6 +13,7 @@ s3 = boto3.client('s3', use_ssl=False, endpoint_url="http://172.17.0.2:9000", aw
 try:
     s3.head_bucket(Bucket=bucket_target)
 except ClientError as e:
+    print('Create bucket', bucket_target)
     s3.create_bucket(Bucket=bucket_target)
 
 # Get file list