Commit 4a1a979a authored by lukas.burgey's avatar lukas.burgey
Browse files

Publish when deployments get removed from users

parent 88af9245
Pipeline #110546 passed with stage
in 1 minute and 22 seconds
......@@ -195,8 +195,13 @@ class User(AbstractUser):
# vo deployments
for dep in self.deployments.filter(vodeployment__vo=vo):
LOGGER.info(dep.msg('Deleting as user is not permitted anymore'))
states = dep.states.all()
dep.delete()
for state in states:
state.dep_target_changed()
# service deployments
from feudal.backend.models.deployments import ServiceDeployment
for dep in self.deployments.instance_of(ServiceDeployment):
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment