mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-07-22 12:50:22 -07:00
parted: support fs_type (#221)
* parted: support fs_type Closes #135 * Update plugins/modules/system/parted.py Co-Authored-By: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/modules/system/parted.py Co-Authored-By: Andrew Klychkov <aaklychkov@mail.ru> Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru>
This commit is contained in:
parent
61ecc1fee4
commit
c2e37d202a
3 changed files with 15 additions and 3 deletions
|
@ -218,10 +218,11 @@ class TestParted(ModuleTestCase):
|
|||
'flags': ["boot"],
|
||||
'state': 'present',
|
||||
'part_start': '257GiB',
|
||||
'fs_type': 'ext3',
|
||||
'_ansible_check_mode': True,
|
||||
})
|
||||
with patch('ansible_collections.community.general.plugins.modules.system.parted.get_device_info', return_value=parted_dict1):
|
||||
self.execute_module(changed=True, script='unit KiB mkpart primary 257GiB 100% unit KiB set 4 boot on')
|
||||
self.execute_module(changed=True, script='unit KiB mkpart primary ext3 257GiB 100% unit KiB set 4 boot on')
|
||||
|
||||
def test_create_label_gpt(self):
|
||||
# Like previous test, current implementation use parted to create the partition and
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue