Skip to content

Commit

Permalink
validate: modify the validation of mounts.type
Browse files Browse the repository at this point in the history
Signed-off-by: zhouhao <[email protected]>
  • Loading branch information
zhouhao committed Jun 16, 2017
1 parent 7150e8d commit 7c1639b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions validate/validate.go
Original file line number Diff line number Diff line change
Expand Up @@ -337,11 +337,11 @@ func (v *Validator) CheckRlimits() (msgs []string) {
func supportedMountTypes(OS string, hostSpecific bool) (map[string]bool, error) {
supportedTypes := make(map[string]bool)

if OS != "linux" && OS != "windows" {
if OS != "linux" && OS != "solaris" {
logrus.Warnf("%v is not supported to check mount type", OS)
return nil, nil
} else if OS == "windows" {
supportedTypes["ntfs"] = true
} else if OS == "solaris" {
supportedTypes["lofs"] = true
return supportedTypes, nil
}

Expand Down

0 comments on commit 7c1639b

Please sign in to comment.