Fix scale up cluster on CDH plugin with vanilla image

Change-Id: I5cda2b38be6532b13ccc7f31b6ea8ecf38c2247c
Closes-bug: #1354022
This commit is contained in:
Sergey Reshetnyak 2014-08-07 18:01:45 +04:00
parent b434226c4f
commit 8809ca0ebe
1 changed files with 4 additions and 1 deletions

View File

@ -138,7 +138,10 @@ def configure_cluster(cluster):
def scale_cluster(cluster, instances):
if not cmd.is_pre_installed_cdh(pu.get_manager(cluster).remote()):
if not instances:
return
if not cmd.is_pre_installed_cdh(instances[0].remote()):
_configure_os(instances)
_install_packages(instances, PACKAGES)
_post_install(instances)