From 51a9cf79bc62fa66454ee1e69f6c3479c09bf754 Mon Sep 17 00:00:00 2001 From: Nicola Murino Date: Sat, 15 Mar 2025 20:38:27 +0100 Subject: [PATCH] azure blob fs: ensure sas url are not nil before comparing Signed-off-by: Nicola Murino --- internal/vfs/vfs.go | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/internal/vfs/vfs.go b/internal/vfs/vfs.go index c312205e..1fcb01be 100644 --- a/internal/vfs/vfs.go +++ b/internal/vfs/vfs.go @@ -790,6 +790,12 @@ func (c *AzBlobFsConfig) isSameResource(other AzBlobFsConfig) bool { if c.Endpoint != other.Endpoint { return false } + if c.SASURL == nil { + c.SASURL = kms.NewEmptySecret() + } + if other.SASURL == nil { + other.SASURL = kms.NewEmptySecret() + } return c.SASURL.GetPayload() == other.SASURL.GetPayload() }