Fix pass of arguments dry_run and not_send_message when deleting profiles 55/15155/3
authorgarciadeblas <gerardo.garciadeblas@telefonica.com>
Wed, 2 Apr 2025 10:53:22 +0000 (12:53 +0200)
committergarciadeblas <gerardo.garciadeblas@telefonica.com>
Wed, 23 Apr 2025 09:31:46 +0000 (11:31 +0200)
Change-Id: I7b39f7bb0a653166d4c86d9b7b64f73bfc40bec0
Signed-off-by: garciadeblas <gerardo.garciadeblas@telefonica.com>
osm_nbi/k8s_topics.py

index 1e73bb2..85ea565 100644 (file)
@@ -71,7 +71,7 @@ class InfraContTopic(ProfileTopic):
         return self.default_profile(rollback, session, indata, kwargs, headers)
 
     def delete(self, session, _id, dry_run=False, not_send_msg=None):
-        self.delete_profile(session, _id, dry_run=False, not_send_msg=None)
+        self.delete_profile(session, _id, dry_run, not_send_msg)
         return _id
 
 
@@ -93,7 +93,7 @@ class InfraConfTopic(ProfileTopic):
         return self.default_profile(rollback, session, indata, kwargs, headers)
 
     def delete(self, session, _id, dry_run=False, not_send_msg=None):
-        self.delete_profile(session, _id, dry_run=False, not_send_msg=None)
+        self.delete_profile(session, _id, dry_run, not_send_msg)
         return _id
 
 
@@ -115,7 +115,7 @@ class AppTopic(ProfileTopic):
         return self.default_profile(rollback, session, indata, kwargs, headers)
 
     def delete(self, session, _id, dry_run=False, not_send_msg=None):
-        self.delete_profile(session, _id, dry_run=False, not_send_msg=None)
+        self.delete_profile(session, _id, dry_run, not_send_msg)
         return _id
 
 
@@ -137,7 +137,7 @@ class ResourceTopic(ProfileTopic):
         return self.default_profile(rollback, session, indata, kwargs, headers)
 
     def delete(self, session, _id, dry_run=False, not_send_msg=None):
-        self.delete_profile(session, _id, dry_run=False, not_send_msg=None)
+        self.delete_profile(session, _id, dry_run, not_send_msg)
         return _id
 
 
@@ -568,7 +568,7 @@ class ClusterTopic(ACMTopic):
                 "Cannot delete registered cluster. Please deregister.",
                 HTTPStatus.UNPROCESSABLE_ENTITY,
             )
-        super().delete(session, _id, dry_run=False, not_send_msg=None)
+        super().delete(session, _id, dry_run, not_send_msg)
 
 
 class ClusterOpsTopic(ACMTopic):