Commit 732eb695 authored by Masaki Kimura's avatar Masaki Kimura

Fix AWS driver fails to provision specified fsType

parent 30ad1028
...@@ -120,8 +120,10 @@ func (util *AWSDiskUtil) CreateVolume(c *awsElasticBlockStoreProvisioner, node * ...@@ -120,8 +120,10 @@ func (util *AWSDiskUtil) CreateVolume(c *awsElasticBlockStoreProvisioner, node *
} }
fstype := "" fstype := ""
if v, ok := c.options.Parameters[volume.VolumeParameterFSType]; ok { for k, v := range c.options.Parameters {
fstype = v if strings.ToLower(k) == volume.VolumeParameterFSType {
fstype = v
}
} }
return name, volumeOptions.CapacityGB, labels, fstype, nil return name, volumeOptions.CapacityGB, labels, fstype, nil
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment