fix: handle deployment task status check on deployment to wangsu cdnpro
This commit is contained in:
@@ -210,7 +210,7 @@ func (d *DeployerProvider) Deploy(ctx context.Context, certPem string, privkeyPe
|
|||||||
|
|
||||||
if getDeploymentTaskDetailResp.Status == "failed" {
|
if getDeploymentTaskDetailResp.Status == "failed" {
|
||||||
return nil, errors.New("unexpected deployment task status")
|
return nil, errors.New("unexpected deployment task status")
|
||||||
} else if getDeploymentTaskDetailResp.Status == "succeeded" {
|
} else if getDeploymentTaskDetailResp.Status == "succeeded" || getDeploymentTaskDetailResp.FinishTime != "" {
|
||||||
break
|
break
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user