Update create_bucket.py

This commit is contained in:
andife
2021-12-28 09:25:09 +01:00
committed by GitHub
parent b129e9a7cc
commit f37ae1a227

View File

@@ -9,20 +9,20 @@ minioUrl = os.environ.get('MLFLOW_S3_ENDPOINT_URL')
bucketName = os.environ.get('AWS_BUCKET_NAME') bucketName = os.environ.get('AWS_BUCKET_NAME')
if accessID == None: if accessID == None:
print('[!] AWS_ACCESS_KEY_ID environemnt variable is empty! run \'source .env\' to load it from the .env file') print('[!] AWS_ACCESS_KEY_ID environment variable is empty! run \'source .env\' to load it from the .env file')
exit(1) exit(1)
if accessSecret == None: if accessSecret == None:
print('[!] AWS_SECRET_ACCESS_KEY environemnt variable is empty! run \'source .env\' to load it from the .env file') print('[!] AWS_SECRET_ACCESS_KEY environment variable is empty! run \'source .env\' to load it from the .env file')
exit(1) exit(1)
if minioUrl == None: if minioUrl == None:
print('[!] MLFLOW_S3_ENDPOINT_URL environemnt variable is empty! run \'source .env\' to load it from the .env file') print('[!] MLFLOW_S3_ENDPOINT_URL environment variable is empty! run \'source .env\' to load it from the .env file')
exit(1) exit(1)
if bucketName == None: if bucketName == None:
print('[!] AWS_BUCKET_NAME environemnt variable is empty! run \'source .env\' to load it from the .env file') print('[!] AWS_BUCKET_NAME environment variable is empty! run \'source .env\' to load it from the .env file')
exit(1) exit(1)
minioUrlHostWithPort = minioUrl.split('//')[1] minioUrlHostWithPort = minioUrl.split('//')[1]