core (params): fixes jid_list to use node's default value when no user value is defined
This commit is contained in:
parent
456ff0ab6c
commit
95c7e2b809
1 changed files with 2 additions and 2 deletions
|
|
@ -373,10 +373,10 @@ class Params(object):
|
||||||
log.error(_(u'Parameter (%(cat)s, %(param)s) of type list has more than one default option!') % {'cat': cat, 'param': param})
|
log.error(_(u'Parameter (%(cat)s, %(param)s) of type list has more than one default option!') % {'cat': cat, 'param': param})
|
||||||
raise exceptions.DataError
|
raise exceptions.DataError
|
||||||
elif node.getAttribute('type') == 'jids_list':
|
elif node.getAttribute('type') == 'jids_list':
|
||||||
if not value:
|
if not value_to_use:
|
||||||
log.debug(u"jids list value is empty")
|
log.debug(u"jids list value is empty")
|
||||||
return []
|
return []
|
||||||
jids = value.split('\t')
|
jids = value_to_use.split('\t')
|
||||||
to_delete = []
|
to_delete = []
|
||||||
for idx, value in enumerate(jids):
|
for idx, value in enumerate(jids):
|
||||||
try:
|
try:
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue