File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed
sdk/monitor/azure-monitor-opentelemetry-exporter/azure/monitor/opentelemetry/exporter/export Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -439,12 +439,13 @@ def _format_storage_telemetry_item(item: TelemetryItem) -> TelemetryItem:
439
439
item .data .base_data .additional_properties = None # type: ignore
440
440
return item
441
441
442
+ # mypy: disable-error-code="union-attr"
442
443
def _get_authentication_credential (** kwargs : Any ) -> Optional [ManagedIdentityCredential ]:
443
444
if "credential" in kwargs :
444
445
return kwargs .get ("credential" )
445
446
try :
446
447
if _APPLICATIONINSIGHTS_AUTHENTICATION_STRING in os .environ :
447
- auth_string = os .getenv (_APPLICATIONINSIGHTS_AUTHENTICATION_STRING )
448
+ auth_string = os .getenv (_APPLICATIONINSIGHTS_AUTHENTICATION_STRING , "" )
448
449
kv_pairs = auth_string .split (";" )
449
450
auth_string_d = {}
450
451
for kv_pair in kv_pairs :
You can’t perform that action at this time.
0 commit comments