good value for callback for a slave that return a list

This commit is contained in:
2017-03-02 21:21:03 +01:00
parent 8bd1b27f73
commit 58a90a3707
2 changed files with 92 additions and 0 deletions

View File

@ -71,6 +71,8 @@ class Values(object):
if opt.impl_is_submulti() and submulti_index is undefined and \
(len(value) == 0 or not isinstance(value[0], list)):
return value
if not opt.impl_is_submulti() and len(value) > index:
return value[index]
else:
return value
if with_meta: