Skip to content
代码片段 群组 项目
未验证 提交 19ae3464 编辑于 作者: Boris Zbarsky's avatar Boris Zbarsky 提交者: GitHub
浏览文件

Removed annotation for Darwin should remove everything in the container. (#882)

So if a cluster is removed, everything in that cluster should be
considered removed.
上级 a6db95e0
No related branches found
No related tags found
无相关合并请求
......@@ -745,7 +745,12 @@ function wasRemoved(cluster, options) {
const data = fetchAvailabilityData(this.global);
const path = makeAvailabilityPath(cluster, options);
let removedRelease = findReleaseForPath(data, ['removed', ...path], options);
let removedRelease = undefined;
let removalPath = [...path];
while (removedRelease === undefined && removalPath !== undefined) {
removedRelease = findReleaseForPath(data, ['removed', ...removalPath], options);
removalPath = findPathToContainer(removalPath);
}
return removedRelease !== undefined;
}
......
0% 加载中 .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册