Merge "Made processes names case sensitive"

This commit is contained in:
Jenkins 2014-05-26 14:29:36 +00:00 committed by Gerrit Code Review
commit caea4cbfc9
2 changed files with 3 additions and 3 deletions

View File

@ -22,7 +22,7 @@ from sahara.plugins.general import exceptions as ex
def get_node_groups(cluster, node_process=None):
return [ng for ng in cluster.node_groups
if (node_process is None or
node_process in [n.lower() for n in ng.node_processes])]
node_process in ng.node_processes)]
def get_instances_count(cluster, node_process=None):

View File

@ -140,10 +140,10 @@ class AmbariPlugin(p.ProvisioningPluginBase):
"cluster_configs": cluster_configs})
def get_oozie_server(self, cluster):
return u.get_instance(cluster, "oozie_server")
return u.get_instance(cluster, "OOZIE_SERVER")
def validate_edp(self, cluster):
oo_count = u.get_instances_count(cluster, 'oozie_server')
oo_count = u.get_instances_count(cluster, 'OOZIE_SERVER')
if oo_count != 1:
raise ex.InvalidComponentCountException('oozie', '1', oo_count)