From 05ad7ed1f4751326e5327f4144802a1f1ec37d84 Mon Sep 17 00:00:00 2001 From: Jay Lau Date: Mon, 22 Dec 2014 05:04:09 -0500 Subject: [PATCH] Remove bay_list from bay_ironic.py and bay_k8s_heat.py There is no need to add bay_list to those two files since the bay list will be get from database. Change-Id: Ide59d0282611df919021e0589464f6eb6460bb3d --- magnum/conductor/handlers/bay_ironic.py | 4 ---- magnum/conductor/handlers/bay_k8s_heat.py | 6 +----- 2 files changed, 1 insertion(+), 9 deletions(-) diff --git a/magnum/conductor/handlers/bay_ironic.py b/magnum/conductor/handlers/bay_ironic.py index 6c64cd8281..450a284a16 100644 --- a/magnum/conductor/handlers/bay_ironic.py +++ b/magnum/conductor/handlers/bay_ironic.py @@ -33,10 +33,6 @@ class Handler(object): bay.create() return bay - def bay_list(self, ctxt): - LOG.debug('ironic bay_list') - return objects.Bay.list(ctxt) - def bay_delete(self, ctxt, uuid): LOG.debug('ironic bay_delete') bay = objects.Bay.get_by_uuid(ctxt, uuid) diff --git a/magnum/conductor/handlers/bay_k8s_heat.py b/magnum/conductor/handlers/bay_k8s_heat.py index c23b8e39c7..b893f6dfed 100644 --- a/magnum/conductor/handlers/bay_k8s_heat.py +++ b/magnum/conductor/handlers/bay_k8s_heat.py @@ -70,10 +70,6 @@ class Handler(object): return bay - def bay_list(self, ctxt): - LOG.debug('k8s_heat bay_list') - return objects.Bay.list(ctxt) - def bay_delete(self, ctxt, uuid): # if bay.type is not 'k8s_heat': # return @@ -102,4 +98,4 @@ class Handler(object): bay.properties['minion_addresses'] = minion_addresses bay.save() - return bay \ No newline at end of file + return bay