1
0
Fork 0
mirror of https://github.com/portainer/portainer.git synced 2025-07-29 02:09:41 +02:00

fix(docker/resourcecontrol): fix an issue with resource deletion (#4524)

This commit is contained in:
Anthony Lapenna 2020-12-10 20:31:31 +13:00 committed by GitHub
parent 45fcb1ad26
commit 20cf948e53
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -559,6 +559,7 @@ func (transport *Transport) executeGenericResourceDeletionOperation(request *htt
return response, err
}
if response.StatusCode == http.StatusNoContent || response.StatusCode == http.StatusOK {
resourceControl, err := transport.dataStore.ResourceControl().ResourceControlByResourceIDAndType(resourceIdentifierAttribute, resourceType)
if err != nil {
return response, err
@ -570,6 +571,7 @@ func (transport *Transport) executeGenericResourceDeletionOperation(request *htt
return response, err
}
}
}
return response, err
}