mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
commit
2225925fb5
1 changed files with 1 additions and 1 deletions
|
@ -470,7 +470,7 @@ def mkpart(device, part_type, fs_type=None, start=None, end=None):
|
|||
'''
|
||||
_validate_device(device)
|
||||
|
||||
if not start or not end:
|
||||
if start in [None, ''] or end in [None, '']:
|
||||
raise CommandExecutionError(
|
||||
'partition.mkpart requires a start and an end'
|
||||
)
|
||||
|
|
Loading…
Add table
Reference in a new issue