mirror of
https://github.com/ARM-software/workload-automation.git
synced 2025-02-20 11:58:55 +00:00
core/agenda.py: Add check for empty values in agenda
This gives an error message when an agenda contains a key with no value, so creating agendas is a little more user-friendly.
This commit is contained in:
parent
2ae8c6073f
commit
65cc22a305
@ -173,6 +173,9 @@ class Agenda(object):
|
||||
message = '{} does not contain a valid agenda structure; top level must be a dict.'
|
||||
raise ConfigError(message.format(self.filepath))
|
||||
for k, v in raw.iteritems():
|
||||
if v is None:
|
||||
raise ConfigError('Empty "{}" entry in {}'.format(k, self.filepath))
|
||||
|
||||
if k == 'config':
|
||||
if not isinstance(v, dict):
|
||||
raise ConfigError('Invalid agenda: "config" entry must be a dict')
|
||||
|
Loading…
x
Reference in New Issue
Block a user