Skip to content

Commit 4c3f556

Browse files
updated bicep
1 parent 8ea55dc commit 4c3f556

3 files changed

Lines changed: 9 additions & 4 deletions

File tree

infra/main.bicep

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1502,6 +1502,8 @@ module webSite 'modules/web-sites.bicep' = {
15021502
AUTH_ENABLED: 'false'
15031503
AZURE_BASIC_LOGGING_LEVEL: 'INFO'
15041504
AZURE_PACKAGE_LOGGING_LEVEL: 'WARNING'
1505+
AZURE_LOGGING_PACKAGES: ''
1506+
15051507
}
15061508
// WAF aligned configuration for Monitoring
15071509
applicationInsightResourceId: enableMonitoring ? applicationInsights!.outputs.resourceId : null

infra/main.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
"_generator": {
77
"name": "bicep",
88
"version": "0.37.4.10188",
9-
"templateHash": "5324473159726924421"
9+
"templateHash": "13483630447639906471"
1010
},
1111
"name": "Multi-Agent Custom Automation Engine",
1212
"description": "This module contains the resources required to deploy the [Multi-Agent Custom Automation Engine solution accelerator](https://github.com/microsoft/Multi-Agent-Custom-Automation-Engine-Solution-Accelerator) for both Sandbox environments and WAF aligned environments.\r\n\r\n> **Note:** This module is not intended for broad, generic use, as it was designed by the Commercial Solution Areas CTO team, as a Microsoft Solution Accelerator. Feature requests and bug fix requests are welcome if they support the needs of this organization but may not be incorporated if they aim to make this module more generic than what it needs to be for its primary use case. This module will likely be updated to leverage AVM resource modules in the future. This may result in breaking changes in upcoming versions when these features are implemented.\r\n"
@@ -34378,7 +34378,8 @@
3437834378
"BACKEND_API_URL": "[format('https://{0}', reference('containerApp').outputs.fqdn.value)]",
3437934379
"AUTH_ENABLED": "false",
3438034380
"AZURE_BASIC_LOGGING_LEVEL": "INFO",
34381-
"AZURE_PACKAGE_LOGGING_LEVEL": "WARNING"
34381+
"AZURE_PACKAGE_LOGGING_LEVEL": "WARNING",
34382+
"AZURE_LOGGING_PACKAGES": ""
3438234383
},
3438334384
"applicationInsightResourceId": "[if(parameters('enableMonitoring'), reference('applicationInsights').outputs.resourceId.value, null())]"
3438434385
}

src/backend/common/config/app_config.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -177,10 +177,12 @@ def _get_optional(self, name: str, default: str = "") -> str:
177177
default: Default value if not found (default: "")
178178
179179
Returns:
180-
The value of the environment variable or the default value
180+
The value of the environment variable or the default value.
181+
Returns default if the environment variable is empty or only whitespace.
181182
"""
182183
if name in os.environ:
183-
return os.environ[name]
184+
value = os.environ[name].strip() if os.environ[name] else ""
185+
return value if value else default
184186
return default
185187

186188
def _get_bool(self, name: str) -> bool:

0 commit comments

Comments
 (0)