openstack: Use common SafeFormatAndMount() for mounting.

There is no reason for OpenStack + Cinder to use it's own variant of format
& mount.
This commit is contained in:
Jan Safranek
2016-01-19 09:36:38 +01:00
parent 810544633e
commit f912870784
5 changed files with 5 additions and 157 deletions

View File

@@ -689,7 +689,7 @@ func validateCinderVolumeSource(cd *api.CinderVolumeSource, fldPath *field.Path)
if len(cd.VolumeID) == 0 {
allErrs = append(allErrs, field.Required(fldPath.Child("volumeID"), ""))
}
if len(cd.FSType) == 0 || (cd.FSType != "ext3" && cd.FSType != "ext4") {
if len(cd.FSType) == 0 {
allErrs = append(allErrs, field.Required(fldPath.Child("fsType"), ""))
}
return allErrs