mirror of
https://github.com/portainer/portainer.git
synced 2025-08-02 04:15:28 +02:00
fix(migration): ignore volumes with no created timestamp EE-1966
This commit is contained in:
parent
cec8f34ae9
commit
0caf5ca59e
1 changed files with 5 additions and 1 deletions
|
@ -218,8 +218,12 @@ func findResourcesToUpdateForDB32(dockerID string, volumesData map[string]interf
|
||||||
if !nameExist {
|
if !nameExist {
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
|
createTime, createTimeExist := volume["CreatedAt"].(string)
|
||||||
|
if !createTimeExist {
|
||||||
|
continue
|
||||||
|
}
|
||||||
|
|
||||||
oldResourceID := fmt.Sprintf("%s%s", volumeName, volume["CreatedAt"].(string))
|
oldResourceID := fmt.Sprintf("%s%s", volumeName, createTime)
|
||||||
resourceControl, ok := volumeResourceControls[oldResourceID]
|
resourceControl, ok := volumeResourceControls[oldResourceID]
|
||||||
|
|
||||||
if ok {
|
if ok {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue