mirror of
https://github.com/thegeeklab/ansible-doctor.git
synced 2024-11-25 14:20:47 +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):
|
def _populate_item(self, item):
|
||||||
for key, value in item:
|
for key, value in item:
|
||||||
anyconfig.merge(self._all_items[key],
|
try:
|
||||||
value, ac_merge=anyconfig.MS_DICTS)
|
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):
|
def _get_annotation_data(self, num, line, name, rfile):
|
||||||
"""
|
"""
|
||||||
|
Loading…
Reference in New Issue
Block a user