From 3f7f528cfeaa72158d706cd0a418b5d81cc9fc37 Mon Sep 17 00:00:00 2001 From: Pekka Korpinen Date: Thu, 15 Aug 2024 13:26:40 +0300 Subject: [PATCH] Support environment variables in server config (#147) --- artifactory_cleanup/loaders.py | 1 + 1 file changed, 1 insertion(+) diff --git a/artifactory_cleanup/loaders.py b/artifactory_cleanup/loaders.py index 147be77..d96b47d 100644 --- a/artifactory_cleanup/loaders.py +++ b/artifactory_cleanup/loaders.py @@ -190,6 +190,7 @@ def get_connection(self) -> Tuple[str, str, str]: user = config["artifactory-cleanup"]["user"] password = config["artifactory-cleanup"]["password"] + server = os.path.expandvars(server) user = os.path.expandvars(user) password = os.path.expandvars(password) return server, user, password