Unverified Commit a7c54213 authored by mohammedabdulwahhab's avatar mohammedabdulwahhab Committed by GitHub
Browse files

fix: command line args should override even if DYN_DEPLOYMENT_CONFIG is set (#1241)f

parent f57864ee
......@@ -288,15 +288,15 @@ def resolve_service_config(
for key, value in configs.items():
service_configs[service][key] = value
# Process service-specific options
if args:
cmdline_overrides = _parse_service_args(args)
logger.debug(f"Applying command line overrides: {cmdline_overrides}")
for service, configs in cmdline_overrides.items():
if service not in service_configs:
service_configs[service] = {}
for key, value in configs.items():
service_configs[service][key] = value
# Process command line overrides
if args:
cmdline_overrides = _parse_service_args(args)
logger.info(f"Applying command line overrides: {cmdline_overrides}")
for service, configs in cmdline_overrides.items():
if service not in service_configs:
service_configs[service] = {}
for key, value in configs.items():
service_configs[service][key] = value
logger.info(f"Running dynamo serve with config: {service_configs}")
return service_configs
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment