本文整理汇总了Python中nailgun.task.helpers.TaskHelper.nodes_to_deploy_ha方法的典型用法代码示例。如果您正苦于以下问题:Python TaskHelper.nodes_to_deploy_ha方法的具体用法?Python TaskHelper.nodes_to_deploy_ha怎么用?Python TaskHelper.nodes_to_deploy_ha使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类nailgun.task.helpers.TaskHelper
的用法示例。
在下文中一共展示了TaskHelper.nodes_to_deploy_ha方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: get_nodes
# 需要导入模块: from nailgun.task.helpers import TaskHelper [as 别名]
# 或者: from nailgun.task.helpers.TaskHelper import nodes_to_deploy_ha [as 别名]
def get_nodes(self, cluster):
nodes_to_deploy = super(
BaseDeploySelectedNodes, self).get_nodes(cluster)
if cluster.is_ha_mode:
nodes_to_deploy = TaskHelper.nodes_to_deploy_ha(
cluster,
nodes_to_deploy
)
self.checked_data(self.validator.validate_nodes_to_deploy,
nodes=nodes_to_deploy, cluster_id=cluster.id)
return nodes_to_deploy
示例2: get_nodes
# 需要导入模块: from nailgun.task.helpers import TaskHelper [as 别名]
# 或者: from nailgun.task.helpers.TaskHelper import nodes_to_deploy_ha [as 别名]
def get_nodes(self, cluster):
nodes_to_deploy = super(
DeploySelectedNodes, self).get_nodes(cluster)
# NOTE(dshulyak) we still need to rerun all controllers
# if all tasks are added to execution
if cluster.is_ha_mode:
nodes_to_deploy = TaskHelper.nodes_to_deploy_ha(
cluster,
nodes_to_deploy
)
self.validate(cluster, nodes_to_deploy)
return nodes_to_deploy
示例3: get_nodes
# 需要导入模块: from nailgun.task.helpers import TaskHelper [as 别名]
# 或者: from nailgun.task.helpers.TaskHelper import nodes_to_deploy_ha [as 别名]
def get_nodes(self, cluster):
nodes_to_deploy = super(DeploySelectedNodes, self).get_nodes(cluster)
if cluster.is_ha_mode:
return TaskHelper.nodes_to_deploy_ha(cluster, nodes_to_deploy)
return nodes_to_deploy