From 6b64a89b2afe88f73f1068fe8a401374aa19e051 Mon Sep 17 00:00:00 2001 From: Narayan Desai Date: Wed, 30 Mar 2005 22:45:10 +0000 Subject: fix prio problem (Logical change 1.215) git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@907 ce84e21b-d406-0410-9b95-82705330c041 --- src/lib/Server/Generators/Cfg.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src') diff --git a/src/lib/Server/Generators/Cfg.py b/src/lib/Server/Generators/Cfg.py index 7d3eba57a..8f5e3b741 100644 --- a/src/lib/Server/Generators/Cfg.py +++ b/src/lib/Server/Generators/Cfg.py @@ -33,11 +33,11 @@ class FileEntry(FileBacked): except IndexError: most2 = 0 if most1 == most2: - if self.name.split('.')[1][0] not in ['C', 'B']: + if self.name.split('.')[-1][0] not in ['C', 'B']: return 0 # need to tiebreak with numeric prio - prio1 = int(self.name.split('.')[1][1:2]) - prio2 = int(other.name.split('.')[1][1:2]) + prio1 = int(self.name.split('.')[-1][1:3]) + prio2 = int(other.name.split('.')[-1][1:3]) return prio1 - prio2 else: return most1 - most2 -- cgit v1.2.3-1-g7c22