Skip to content

Commit 005b92d

Browse files
Change sample to print container rather than delete it (Azure#18560)
* Fixed PathProperties class init issue * Adjusted sample to print container info instead * Revert "Fixed PathProperties class init issue" This reverts commit 18e8242.
1 parent 8e1fbbd commit 005b92d

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

sdk/storage/azure-storage-blob/samples/blob_samples_service.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ def container_operations(self):
9696
# Filter results with name prefix
9797
test_containers = blob_service_client.list_containers(name_starts_with='test-')
9898
for container in test_containers:
99-
blob_service_client.delete_container(container)
99+
print(container['name'], container['metadata'])
100100
# [END bsc_list_containers]
101101

102102
finally:

sdk/storage/azure-storage-blob/samples/blob_samples_service_async.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ async def container_operations_async(self):
108108
test_containers.append(name)
109109

110110
for container in test_containers:
111-
await blob_service_client.delete_container(container)
111+
print(container['name'], container['metadata'])
112112
# [END bsc_list_containers]
113113

114114
finally:

0 commit comments

Comments
 (0)