The config_setup copies self.config values to environment variables using os.environ but then configure_minio goes back to self.config which means it fails to use the appropriate config. This is particularly an issues for when use_localhost=True. The correct code should be:
uri_formatted = os.environ['MLFLOW_S3_ENDPOINT_URL'].replace("http://", "")
user = os.environ['AWS_ACCESS_KEY_ID']
password = os.environ['AWS_SECRET_ACCESS_KEY']
The
config_setup
copiesself.config
values to environment variables usingos.environ
but thenconfigure_minio
goes back toself.config
which means it fails to use the appropriate config. This is particularly an issues for whenuse_localhost=True
. The correct code should be: