From 18fdf357eb4bfb44832df9405f3e4df8600ba8d5 Mon Sep 17 00:00:00 2001 From: Kennan Date: Mon, 30 Mar 2015 10:17:52 +0800 Subject: [PATCH] Remove unused code in kube handler Once we remove kube utils code, we also need remove handler code here. Closes-Bug: #1437982 Change-Id: I194287284eb5283003da46de84fae2c5cfe87ba2 --- magnum/conductor/handlers/kube.py | 24 ------------------------ 1 file changed, 24 deletions(-) diff --git a/magnum/conductor/handlers/kube.py b/magnum/conductor/handlers/kube.py index 1ac6c9e04d..c732d9dded 100644 --- a/magnum/conductor/handlers/kube.py +++ b/magnum/conductor/handlers/kube.py @@ -112,10 +112,6 @@ class Handler(object): service.refresh(context) return service - def service_list(self, context): - LOG.debug("service_list") - return self.kube_cli.service_list() - def service_delete(self, context, uuid): LOG.debug("service_delete %s", uuid) service = objects.Service.get_by_uuid(context, uuid) @@ -128,14 +124,6 @@ class Handler(object): # call the service object to persist in db service.destroy(context) - def service_get(self, context, uuid): - LOG.debug("service_get %s", uuid) - return self.kube_cli.service_get(uuid) - - def service_show(self, uuid): - LOG.debug("service_show %s", uuid) - return self.kube_cli.service_show(uuid) - # Pod Operations def pod_create(self, context, pod): LOG.debug("pod_create") @@ -166,10 +154,6 @@ class Handler(object): pod.refresh(context) return pod - def pod_list(self, context): - LOG.debug("pod_list") - return self.kube_cli.pod_list() - def pod_delete(self, context, uuid): LOG.debug("pod_delete %s", uuid) # trigger a kubectl command @@ -188,14 +172,6 @@ class Handler(object): # call the pod object to persist in db pod.destroy(context) - def pod_get(self, context, uuid): - LOG.debug("pod_get %s", uuid) - return self.kube_cli.pod_get(uuid) - - def pod_show(self, context, uuid): - LOG.debug("pod_show %s", uuid) - return self.kube_cli.pod_show(uuid) - # Replication Controller Operations def rc_create(self, context, rc): LOG.debug("rc_create")