Skip to content

Commit 2a26cd6

Browse files
authored
Fix template readme (Azure#28133)
* readme template * fix readme
1 parent 0a0d5a6 commit 2a26cd6

File tree

1 file changed

+2
-1
lines changed
  • tools/azure-sdk-tools/packaging_tools/templates/packaging_files

1 file changed

+2
-1
lines changed

tools/azure-sdk-tools/packaging_tools/templates/packaging_files/README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,10 +33,11 @@ By default, [Azure Active Directory](https://aka.ms/awps/aad) token authenticati
3333
In addition, Azure subscription ID can be configured via environment variable `AZURE_SUBSCRIPTION_ID`.
3434
{% endif %}
3535
With above configuration, client can be authenticated by following code:
36+
{%- set sub_namespace = "." + sub_namespace if sub_namespace else "" %}
3637

3738
```python
3839
from azure.identity import DefaultAzureCredential
39-
from {{package_name | replace("-", ".")}} import {{ title }}
40+
from {{package_name | replace("-", ".")}}{{sub_namespace}} import {{ title }}
4041
{% if not no_sub -%}
4142
import os
4243

0 commit comments

Comments
 (0)