mirror of
https://github.com/thegeeklab/ansible-doctor.git
synced 2024-11-21 20:30:43 +00:00
catch ValueError exception while merge annotation dicts
This commit is contained in:
parent
9db5e533b7
commit
a54e370f14
@ -72,8 +72,10 @@ class Annotation:
|
||||
|
||||
def _populate_item(self, item):
|
||||
for key, value in item:
|
||||
anyconfig.merge(self._all_items[key],
|
||||
value, ac_merge=anyconfig.MS_DICTS)
|
||||
try:
|
||||
anyconfig.merge(self._all_items[key], value, ac_merge=anyconfig.MS_DICTS)
|
||||
except ValueError as e:
|
||||
self.log.sysexit_with_message("Unable to merge annotation values:\n{}".format(e))
|
||||
|
||||
def _get_annotation_data(self, num, line, name, rfile):
|
||||
"""
|
||||
|
Loading…
Reference in New Issue
Block a user