Skip to content

Commit

Permalink
Merge pull request #4 from mklauser/pr136
Browse files Browse the repository at this point in the history
Pr136
  • Loading branch information
wkerzendorf committed May 7, 2014
2 parents 632e37f + 2360bc5 commit d737b59
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 4 deletions.
2 changes: 1 addition & 1 deletion tardis/data/tardis_config_definition.yml
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ model:
filetype:
property_type: string
default: None
allowed_value: ['simple_ascii', 'bla']
allowed_value: ['simple_ascii', 'artis']
mandatory: True
help: file type

Expand Down
13 changes: 10 additions & 3 deletions tardis/io/config_validator.py
Original file line number Diff line number Diff line change
Expand Up @@ -993,10 +993,17 @@ def __init__(self, container_default_dict, container_dict, container_path=None):
if self.__has_additional_items:
for aitem in additional_items:
try:
self.__default_container[aitem], self.__config_container[aitem] = \
self.parse_container_items(container_default_dict[aitem],
container_dict[aitem], aitem,
if aitem in container_dict:
self.__default_container[aitem], self.__config_container[aitem] = \
self.parse_container_items(container_default_dict[aitem],
container_dict[aitem], aitem,
self.__container_path + [aitem])
else:
self.__default_container[aitem], self.__config_container[aitem] = \
self.parse_container_items(container_default_dict[aitem],
None, aitem,
self.__container_path + [aitem])

except KeyError:
pass

Expand Down

0 comments on commit d737b59

Please sign in to comment.