Skip to content

Commit 62489f7

Browse files
authored
Merge pull request #118 from idseefeld/develop
set container permissions only on create …
2 parents 9b326df + e0601bb commit 62489f7

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

src/UmbracoFileSystemProviders.Azure/AzureFileSystem.cs

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -631,8 +631,11 @@ private static CloudBlobContainer CreateContainer(CloudBlobClient cloudBlobClien
631631
return container;
632632
}
633633

634-
container.CreateIfNotExists();
635-
container.SetPermissions(new BlobContainerPermissions { PublicAccess = accessType });
634+
if (!container.Exists())
635+
{
636+
container.CreateIfNotExists();
637+
container.SetPermissions(new BlobContainerPermissions { PublicAccess = accessType });
638+
}
636639

637640
return container;
638641
}

0 commit comments

Comments
 (0)