CORD-1913: Restore execution of custom service save() methods in attics
Change-Id: Ib21c9d010b6fffe74a8c9b15f096c41e546fc4dc
(cherry picked from commit 747d52a4049d7def1cf5285ad7861965cb9f362c)
diff --git a/xos/attic/vegtenant_model.py b/xos/attic/vegtenant_model.py
index 9ffb077..253d0d2 100644
--- a/xos/attic/vegtenant_model.py
+++ b/xos/attic/vegtenant_model.py
@@ -297,7 +297,7 @@
tag = Tag(service=self.provider_service, content_object=instance, name="vm_vrouter_tenant",value="%d" % vrouter.id)
tag.save()
-def save(self, *args, **kwargs):
+def __xos_save_base(self, *args, **kwargs):
if not self.creator:
if not getattr(self, "caller", None):
# caller must be set when creating a vEG since it creates a slice
@@ -308,6 +308,7 @@
super(VEGTenant, self).save(*args, **kwargs)
model_policy_veg(self.pk)
+ return True # Indicate that we called super.save()
def delete(self, *args, **kwargs):
self.cleanup_vrouter()