mirror of
https://github.com/drakkan/sftpgo.git
synced 2025-12-06 14:20:55 +03:00
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:
@@ -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()
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user