Skip to content

Commit 4e2111c

Browse files
committed
Refine inline comment
1 parent 95e1bb0 commit 4e2111c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

msal/managed_identity.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -424,7 +424,7 @@ def _obtain_token_on_azure_vm(http_client, managed_identity, resource):
424424
"resource": payload.get("resource"),
425425
"token_type": payload.get("token_type", "Bearer"),
426426
}
427-
return payload # Typically an error, but it is undefined in the doc above
427+
return payload # It would be {"error": ..., "error_description": ...} according to https://learn.microsoft.com/en-us/entra/identity/managed-identities-azure-resources/how-to-use-vm-token#error-handling
428428
except json.decoder.JSONDecodeError:
429429
logger.debug("IMDS emits unexpected payload: %s", resp.text)
430430
raise

0 commit comments

Comments
 (0)