fix(migration): ignore volumes with no created timestamp EE-1966

pull/6007/head
Hui 3 years ago committed by GitHub
parent cec8f34ae9
commit 0caf5ca59e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -218,8 +218,12 @@ func findResourcesToUpdateForDB32(dockerID string, volumesData map[string]interf
if !nameExist {
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]
if ok {

Loading…
Cancel
Save