mirror of
https://github.com/portainer/portainer.git
synced 2025-07-22 06:49:40 +02:00
fix(db): handle decryption error EE-2466 (#6499)
This commit is contained in:
parent
cf459a2d28
commit
1bb02eea59
1 changed files with 1 additions and 1 deletions
|
@ -37,7 +37,7 @@ func (connection *DbConnection) UnmarshalObject(data []byte, object interface{})
|
||||||
if connection.getEncryptionKey() != nil {
|
if connection.getEncryptionKey() != nil {
|
||||||
data, err = decrypt(data, connection.getEncryptionKey())
|
data, err = decrypt(data, connection.getEncryptionKey())
|
||||||
if err != nil {
|
if err != nil {
|
||||||
errors.Wrapf(err, "Failed decrypting object")
|
return errors.Wrap(err, "Failed decrypting object")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
e := json.Unmarshal(data, object)
|
e := json.Unmarshal(data, object)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue