Skip to content

Commit

Permalink
Update pkg/limayaml/validate.go
Browse files Browse the repository at this point in the history
Fix typo

Co-authored-by: Jan Dubois <jan@jandubois.com>
  • Loading branch information
norio-nomura and jandubois committed Jan 23, 2024
1 parent d9ef71a commit feb8c86
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/limayaml/validate.go
Original file line number Diff line number Diff line change
Expand Up @@ -307,7 +307,7 @@ func Validate(y LimaYAML, warn bool) error {
switch *y.ExcludeFromBackup {
case ExcludeFromBackupAll, ExcludeFromBackupDisks, ExcludeFromBackupNone:
default:
return fmt.Errorf("field `excludeFromBackup` must be %q, %q or %q; got %q", ExcludeFromBackupAll, ExcludeFromBackupDisks, ExcludeFromBackupNone, *y.ExcludeFromBackup)
return fmt.Errorf("field `excludeFromBackup` must be %q, %q, or %q; got %q", ExcludeFromBackupAll, ExcludeFromBackupDisks, ExcludeFromBackupNone, *y.ExcludeFromBackup)
}
if warn && runtime.GOOS != "darwin" && *y.ExcludeFromBackup != "none" {
logrus.Warn("field `excludeFromBackup` is only supported on macOS")
Expand Down

0 comments on commit feb8c86

Please sign in to comment.