From 710c1019fe0937dca895ce3e688335549cd8a444 Mon Sep 17 00:00:00 2001 From: "Cuong. Duong Manh" Date: Fri, 31 May 2024 16:50:34 +0700 Subject: [PATCH] [build] update error handler for api detach volume --- vngcloud/services/compute/v2/server.go | 1 + 1 file changed, 1 insertion(+) diff --git a/vngcloud/services/compute/v2/server.go b/vngcloud/services/compute/v2/server.go index 61d59e9..c0b57c8 100644 --- a/vngcloud/services/compute/v2/server.go +++ b/vngcloud/services/compute/v2/server.go @@ -129,6 +129,7 @@ func (s *ComputeServiceV2) DetachBlockVolume(popts IDetachBlockVolumeRequest) ls if _, sdkErr := s.VServerClient.Put(url, req); sdkErr != nil { return lserr.SdkErrorHandler(sdkErr, errResp, lserr.WithErrorVolumeNotFound(errResp), + lserr.WithErrorVolumeInProcess(errResp), lserr.WithErrorVolumeAvailable(errResp)). WithKVparameters("projectId", s.getProjectId(), "volumeId", popts.GetBlockVolumeId(),