azure blob fs: ensure sas url are not nil before comparing

Signed-off-by: Nicola Murino <nicola.murino@gmail.com>
This commit is contained in:
Nicola Murino 2025-03-15 20:38:27 +01:00
commit 1019f4f5e0
No known key found for this signature in database
GPG key ID: 935D2952DEC4EECF

View file

@ -734,6 +734,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()
}