modify check_uninstall_hosts from private to public

Change-Id: I9e0523fcfb74fe9d227ea3107923cf1cd089afd3
This commit is contained in:
Zhou Ya
2016-12-02 11:17:19 +08:00
parent 5e84308572
commit f380ebf46d
2 changed files with 4 additions and 4 deletions

View File

@@ -61,7 +61,7 @@ class API(driver.DeploymentDriver):
discover_host_meta['id'],
discover)
def _check_uninstall_hosts(self, req, cluster_id, uninstall_hosts):
def check_uninstall_hosts(self, req, cluster_id, uninstall_hosts):
pass
def prepare_ssh_discovered_node(self, req, fp, discover_host_meta):

6
code/daisy/daisy/api/v1/install.py Executable file → Normal file
View File

@@ -382,9 +382,9 @@ class Controller(controller.BaseController):
req, cluster_id, BACKENDS_UNINSTALL_ORDER)
for backend in backends:
backend_driver = driver.load_deployment_dirver(backend)
backend_driver._check_uninstall_hosts(req,
cluster_id,
uninstall_hosts)
backend_driver.check_uninstall_hosts(req,
cluster_id,
uninstall_hosts)
uninstall_thread = Thread(
target=backend_driver.uninstall, args=(
req, cluster_id, uninstall_hosts))