Fix AWS driver fails to provision specified fsType

pull/564/head
Masaki Kimura 2018-12-01 00:06:14 +00:00
parent 30ad1028eb
commit 732eb69597
1 changed files with 4 additions and 2 deletions

View File

@ -120,8 +120,10 @@ func (util *AWSDiskUtil) CreateVolume(c *awsElasticBlockStoreProvisioner, node *
}
fstype := ""
if v, ok := c.options.Parameters[volume.VolumeParameterFSType]; ok {
fstype = v
for k, v := range c.options.Parameters {
if strings.ToLower(k) == volume.VolumeParameterFSType {
fstype = v
}
}
return name, volumeOptions.CapacityGB, labels, fstype, nil