Come out of loop when RPC_STAGE_UNSTAGE_VOLUME is found

This commit is contained in:
Ted Yu 2019-09-21 14:23:06 -07:00
parent 53b3c8968e
commit 44787fe14e

View File

@ -737,6 +737,7 @@ func (c *csiDriverClient) nodeSupportsStageUnstageV1(ctx context.Context) (bool,
for _, capability := range capabilities {
if capability.GetRpc().GetType() == csipbv1.NodeServiceCapability_RPC_STAGE_UNSTAGE_VOLUME {
stageUnstageSet = true
break
}
}
return stageUnstageSet, nil
@ -764,6 +765,7 @@ func (c *csiDriverClient) nodeSupportsStageUnstageV0(ctx context.Context) (bool,
for _, capability := range capabilities {
if capability.GetRpc().GetType() == csipbv0.NodeServiceCapability_RPC_STAGE_UNSTAGE_VOLUME {
stageUnstageSet = true
break
}
}
return stageUnstageSet, nil