CORD-1913: Restore execution of custom service save() methods in attics
Change-Id: I989aef8f1efa9a61ea6ca88fec2eec7f1e24ac83
diff --git a/xos/attic/sflowtenant_model.py b/xos/attic/sflowtenant_model.py
index 3132df1..2c0227c 100644
--- a/xos/attic/sflowtenant_model.py
+++ b/xos/attic/sflowtenant_model.py
@@ -56,7 +56,7 @@
raise XOSProgrammingError("SFlowTenant: Only UDP listening endpoint URLs are accepted...valid syntax is: udp://ip:port")
self.set_attribute("listening_endpoint", value)
-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 SFlow tenant since it creates a slice
@@ -74,7 +74,7 @@
if channel_count > 0:
raise XOSValidationError("Already %s sflow channels exist for user Can only create max 1 tenant per user and listening endpoint" % str(channel_count))
- super(SFlowTenant, self).save(*args, **kwargs)
+ return False
def delete(self, *args, **kwargs):
super(MonitoringChannel, self).delete(*args, **kwargs)