Explorar o código

Warn user when bucket is created

DricomDragon %!s(int64=4) %!d(string=hai) anos
pai
achega
122c4835f8
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  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