cloudfoundry / cloud_controller_ng

Cloud Foundry Cloud Controller
Apache License 2.0
191 stars 357 forks source link

Prevent deletion of current droplet #3960

Closed philippthun closed 1 week ago

philippthun commented 3 weeks ago

DropletsController: check if droplet is in use (i.e. app's current droplet) and raise an ApiError (UnprocessableEntity)

Prepare for the introduction of a foreign key from apps.droplet_guid to droplets.guid: