parsing_group

This commit is contained in:
2018-01-01 21:32:39 +01:00
parent b83b9dcaa6
commit 4d154a89b5
6 changed files with 695 additions and 44 deletions

View File

@ -172,8 +172,8 @@ class MasterSlaves(OptionDescription):
context):
if option.impl_is_master_slaves('master') and isinstance(value, list):
if len(value) < context._impl_length:
raise ValueError(_('cannot reduce length of master "{}"'
'').format(option.impl_get_display_name()))
raise SlaveError(_('cannot reduce length of the master "{}"'
'').format(option.impl_get_display_name()))
def is_masterslaves(self):
return True