Skip to content

Commit 3d3209a

Browse files
committed
Removed hack for volume type
1 parent 90148ad commit 3d3209a

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

api/helpers.go

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -284,10 +284,7 @@ func CreateServer(api *ScalewayAPI, imageName string, name string, bootscript st
284284
volumePayload.Size = &currentVolume.Size
285285
volumePayload.ModificationDate = &currentVolume.ModificationDate
286286
volumePayload.ExportURI = &currentVolume.ExportURI
287-
288-
// FIXME: temporary workaround for API bug
289-
newType := "l_hdd"
290-
volumePayload.VolumeType = &newType
287+
volumePayload.VolumeType = &currentVolume.VolumeType
291288

292289
err = api.PutVolume(currentVolume.Identifier, volumePayload)
293290
if err != nil {

0 commit comments

Comments
 (0)