Skip to content

Commit 8021250

Browse files
authored
Merge pull request #325 from KevinSe/patch-1
Update block_blob_usage.py in samples
2 parents 9c581dd + 5121abc commit 8021250

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

samples/blob/block_blob_usage.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -157,6 +157,7 @@ def copy_blob(self):
157157
copy = self.service.copy_blob(container_name, 'blob1copy', source)
158158

159159
# Poll for copy completion
160+
count = 0
160161
while copy.status != 'success':
161162
count = count + 1
162163
if count > 5:
@@ -443,4 +444,4 @@ def blocks(self):
443444
new_block_list.append(block_list.uncommitted_blocks[0])
444445
self.service.put_block_list(container_name, blob_name, new_block_list)
445446

446-
self.service.delete_container(container_name)
447+
self.service.delete_container(container_name)

0 commit comments

Comments
 (0)