Merge pull request #28175 from twangboy/fix_19673

Fixes #19673
This commit is contained in:
Mike Place 2015-10-21 14:48:24 -06:00
commit 2225925fb5

View file

@ -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'
)