@@ -32,7 +32,7 @@ func (r *ResourceVolume) Config() any {
3232func (r * ResourceVolume ) DoCreate (ctx context.Context ) (string , error ) {
3333 response , err := r .client .Volumes .Create (ctx , r .config )
3434 if err != nil {
35- return "" , SDKError { Method : "Volumes.Create" , Err : err }
35+ return "" , err
3636 }
3737 return response .FullName , nil
3838}
@@ -58,7 +58,7 @@ func (r *ResourceVolume) DoUpdate(ctx context.Context, id string) error {
5858
5959 response , err := r .client .Volumes .Update (ctx , updateRequest )
6060 if err != nil {
61- return SDKError { Method : "Volumes.Update" , Err : err }
61+ return err
6262 }
6363
6464 if id != response .FullName {
@@ -91,7 +91,7 @@ func (r *ResourceVolume) DoUpdateWithID(ctx context.Context, id string) (string,
9191
9292 response , err := r .client .Volumes .Update (ctx , updateRequest )
9393 if err != nil {
94- return "" , SDKError { Method : "Volumes.Update" , Err : err }
94+ return "" , err
9595 }
9696
9797 return response .FullName , nil
@@ -100,7 +100,7 @@ func (r *ResourceVolume) DoUpdateWithID(ctx context.Context, id string) (string,
100100func DeleteVolume (ctx context.Context , client * databricks.WorkspaceClient , id string ) error {
101101 err := client .Volumes .DeleteByName (ctx , id )
102102 if err != nil {
103- return SDKError { Method : "Volumes.Delete" , Err : err }
103+ return err
104104 }
105105 return nil
106106}
0 commit comments