handle non Readable SeaModules correctly
Change-Id: I5fa0a52926af3bb386c18de49fef9b1caba92e79
This commit is contained in:
parent
70c3f5f37f
commit
5f65b6b4ce
@ -324,6 +324,7 @@ class SeaConfigCreator(SeaClient):
|
|||||||
result.append('%s: %s' % (filename, ','.join(n for n in descr)))
|
result.append('%s: %s' % (filename, ','.join(n for n in descr)))
|
||||||
raise SystemExit('; '.join(result))
|
raise SystemExit('; '.join(result))
|
||||||
|
|
||||||
|
|
||||||
SEA_TO_SECOPTYPE = {
|
SEA_TO_SECOPTYPE = {
|
||||||
'float': FloatRange(),
|
'float': FloatRange(),
|
||||||
'text': StringType(),
|
'text': StringType(),
|
||||||
@ -391,8 +392,11 @@ class SeaModule(Module):
|
|||||||
if rel_paths == '*' or not rel_paths:
|
if rel_paths == '*' or not rel_paths:
|
||||||
# take all
|
# take all
|
||||||
main = descr['params'][0]
|
main = descr['params'][0]
|
||||||
# assert main['path'] == '' # TODO: check cases where this fails
|
if isinstance(cls, Readable):
|
||||||
main['key'] = 'value'
|
# assert main['path'] == '' # TODO: check cases where this fails
|
||||||
|
main['key'] = 'value'
|
||||||
|
else:
|
||||||
|
descr['params'].pop(0)
|
||||||
else:
|
else:
|
||||||
# filter by relative paths
|
# filter by relative paths
|
||||||
rel_paths = rel_paths.split()
|
rel_paths = rel_paths.split()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user