mirror of
https://github.com/drakkan/sftpgo.git
synced 2026-03-14 14:25:52 +01: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:
parent
89330460e8
commit
1019f4f5e0
1 changed files with 6 additions and 0 deletions
|
|
@ -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()
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue