зеркало из https://github.com/Azure/aztk.git
Bug: fix get pool crash on delete (#313)
This commit is contained in:
Родитель
ce5abe4937
Коммит
a86dc7ee26
|
@ -107,9 +107,6 @@ class Client:
|
|||
:return pool: CloudPool, nodes: ComputeNodePaged
|
||||
"""
|
||||
pool = self.batch_client.pool.get(cluster_id)
|
||||
if pool.state is batch_models.PoolState.deleting:
|
||||
return models.Cluster(pool)
|
||||
|
||||
nodes = self.batch_client.compute_node.list(pool_id=cluster_id)
|
||||
return pool, nodes
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче