From 2047775d31bc872a775375317a07e2a5fe6a5535 Mon Sep 17 00:00:00 2001 From: Anmol Sachan Date: Tue, 29 May 2018 15:08:09 +0530 Subject: [PATCH] Changed Unmanage flow - incorporated review tendrl-bug-id: Tendrl/commons#841 Bugzilla-id: 1583590 Signed-off-by: Anmol Sachan --- .../node/atoms/stop_integration_services/__init__.py | 6 ++++-- .../objects/node/atoms/stop_monitoring_services/__init__.py | 6 ++++-- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/tendrl/commons/objects/node/atoms/stop_integration_services/__init__.py b/tendrl/commons/objects/node/atoms/stop_integration_services/__init__.py index c8d19add..9b73821b 100644 --- a/tendrl/commons/objects/node/atoms/stop_integration_services/__init__.py +++ b/tendrl/commons/objects/node/atoms/stop_integration_services/__init__.py @@ -7,5 +7,7 @@ def __init__(self, *args, **kwargs): super(StopIntegrationServices, self).__init__(*args, **kwargs) def run(self): - services = ["tendrl-gluster-integration"] - return service_utils.stop_service(services, self.parameters) + return service_utils.stop_service( + ["tendrl-gluster-integration"], + self.parameters + ) diff --git a/tendrl/commons/objects/node/atoms/stop_monitoring_services/__init__.py b/tendrl/commons/objects/node/atoms/stop_monitoring_services/__init__.py index b1f566b7..e37d9351 100644 --- a/tendrl/commons/objects/node/atoms/stop_monitoring_services/__init__.py +++ b/tendrl/commons/objects/node/atoms/stop_monitoring_services/__init__.py @@ -7,5 +7,7 @@ def __init__(self, *args, **kwargs): super(StopMonitoringServices, self).__init__(*args, **kwargs) def run(self): - services = ["collectd"] - return service_utils.stop_service(services, self.parameters) + return service_utils.stop_service( + ["collectd"], + self.parameters + )