From 87869abf8b5c7691a0fe9b8e1bf3d2c99aed34ea Mon Sep 17 00:00:00 2001 From: Malar Invention Date: Sun, 12 Jan 2025 14:35:31 +0530 Subject: [PATCH] fix: provide configurable file path --- node_external_ip_controller_async.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/node_external_ip_controller_async.py b/node_external_ip_controller_async.py index f083f29..1e6bcaf 100644 --- a/node_external_ip_controller_async.py +++ b/node_external_ip_controller_async.py @@ -5,7 +5,8 @@ import os # Configuration import yaml -with open("gateway_services.yaml", "r") as f: +GATEWAY_SERVICES_FILE = os.getenv("GATEWAY_SERVICES_FILE") +with open(GATEWAY_SERVICES_FILE, "r") as f: gateway_services = yaml.safe_load(f) services = gateway_services["gateway_services"]