From 7e230dfa1629df0efba78b31309bb9a562f8717d Mon Sep 17 00:00:00 2001 From: fignew Date: Wed, 6 Mar 2019 22:12:44 -0500 Subject: [PATCH] Add fat as a valid fs_type in parted module Fedora and RHEL do not have a mkfs.fat32 or mkfs.fat16 binary available. There is only mkfs.fat (and mkfs.vfat, same binary) provided by the dosfstools package. --- salt/modules/parted.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/salt/modules/parted.py b/salt/modules/parted.py index c2e0ebb882b4..2cbdc48901c9 100644 --- a/salt/modules/parted.py +++ b/salt/modules/parted.py @@ -390,8 +390,8 @@ def _is_fstype(fs_type): :param fs_type: file system type :return: True if fs_type is supported in this module, False otherwise ''' - return fs_type in set(['ext2', 'ext3', 'ext4', 'fat32', 'fat16', 'linux-swap', 'reiserfs', - 'hfs', 'hfs+', 'hfsx', 'NTFS', 'ntfs', 'ufs']) + return fs_type in set(['ext2', 'ext3', 'ext4', 'fat32', 'fat16', 'fat', 'linux-swap', + 'reiserfs', 'hfs', 'hfs+', 'hfsx', 'NTFS', 'ntfs', 'ufs']) def mkfs(device, fs_type):