prettier print when requirements are broken
Signed-off-by: Nico Schottelius <nico@freiheit.schottelius.org>
This commit is contained in:
parent
e98ff2879a
commit
0cf170b18e
1 changed files with 5 additions and 5 deletions
|
@ -229,12 +229,12 @@ class Config(object):
|
||||||
for requirement in cdist_object.requirements_unfinished(cdist_object.autorequire):
|
for requirement in cdist_object.requirements_unfinished(cdist_object.autorequire):
|
||||||
autorequire_names.append(requirement.name)
|
autorequire_names.append(requirement.name)
|
||||||
|
|
||||||
requirements = ", ".join(requirement_names)
|
requirements = "\n ".join(requirement_names)
|
||||||
autorequire = ", ".join(autorequire_names)
|
autorequire = "\n ".join(autorequire_names)
|
||||||
info_string.append("%s requires: %s autorequires: %s" % (cdist_object.name, requirements, autorequire))
|
info_string.append("%s requires:\n %s\n%s autorequires:\n %s" % (cdist_object.name, requirements, cdist_object.name, autorequire))
|
||||||
|
|
||||||
raise cdist.UnresolvableRequirementsError("The requirements of the following objects could not be resolved: %s" %
|
raise cdist.UnresolvableRequirementsError("The requirements of the following objects could not be resolved:\n%s" %
|
||||||
("; ".join(info_string)))
|
("\n".join(info_string)))
|
||||||
|
|
||||||
def object_prepare(self, cdist_object):
|
def object_prepare(self, cdist_object):
|
||||||
"""Prepare object: Run type explorer + manifest"""
|
"""Prepare object: Run type explorer + manifest"""
|
||||||
|
|
Loading…
Reference in a new issue