def get_bucket_location()

in job-worker/npm_job_worker.py [0:0]


def get_bucket_location(bucketName, init_client):
    region = init_client.get_bucket_location(Bucket=bucketName)['LocationConstraint']
    if not region:
        region = 'us-east-1'
    return(region)