From 661a94896acbe6400e80d4a9481b71d4cb4b1f6c Mon Sep 17 00:00:00 2001 From: Harshil Sanjay Jain Date: Tue, 9 Jul 2024 13:09:35 -0400 Subject: [PATCH] Dont update for null publicAccess --- src/main/java/gyro/azure/storage/StorageAccountResource.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/gyro/azure/storage/StorageAccountResource.java b/src/main/java/gyro/azure/storage/StorageAccountResource.java index 2ef6b356..ee2ff6ac 100644 --- a/src/main/java/gyro/azure/storage/StorageAccountResource.java +++ b/src/main/java/gyro/azure/storage/StorageAccountResource.java @@ -266,7 +266,7 @@ public void create(GyroUI ui, State state) throws URISyntaxException, InvalidKey if (Boolean.TRUE.equals(getBlobPublicAccess())) { update = update.enableBlobPublicAccess(); - } else { + } else if (Boolean.FALSE.equals(getBlobPublicAccess())) { update = update.disableBlobPublicAccess(); }