From 16a58d447ba102088f6bf62217202200bf2b2113 Mon Sep 17 00:00:00 2001 From: Sol Jerome Date: Mon, 23 Mar 2009 16:08:53 +0000 Subject: Clarify priority conflict error message Signed-off-by: Sol Jerome git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5140 ce84e21b-d406-0410-9b95-82705330c041 --- src/lib/Server/Plugin.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'src/lib/Server/Plugin.py') diff --git a/src/lib/Server/Plugin.py b/src/lib/Server/Plugin.py index a9c2c303e..f88f10de5 100644 --- a/src/lib/Server/Plugin.py +++ b/src/lib/Server/Plugin.py @@ -442,10 +442,12 @@ class PrioDir(Plugin, Generator, XMLDirectoryBacked): else: prio = [int(src.priority) for src in matching] if prio.count(max(prio)) > 1: - self.logger.error("Found conflicting %s sources with same priority for %s, pkg %s" % - (entry.tag.lower(), metadata.hostname, entry.get('name'))) + self.logger.error("Found conflicting sources with " + "same priority for %s, %s %s" % + (metadata.hostname, + entry.tag.lower(), entry.get('name'))) self.logger.error([item.name for item in matching]) - self.logger.error("Prio was %s" % max(prio)) + self.logger.error("Priority was %s" % max(prio)) raise PluginExecutionError index = prio.index(max(prio)) -- cgit v1.2.3-1-g7c22