mirror of https://github.com/portainer/portainer
fix(migration): ignore volumes with no created timestamp EE-1966
parent
cec8f34ae9
commit
0caf5ca59e
|
@ -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…
Reference in New Issue