summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorNarayan Desai <desai@mcs.anl.gov>2005-03-30 22:45:10 +0000
committerNarayan Desai <desai@mcs.anl.gov>2005-03-30 22:45:10 +0000
commit6b64a89b2afe88f73f1068fe8a401374aa19e051 (patch)
treef924999ca41887bb7d2d3bfcc2c234d13a9b1f30 /src
parentc0b1507d4c713c11a34249a253cff7b11fd9fb60 (diff)
downloadbcfg2-6b64a89b2afe88f73f1068fe8a401374aa19e051.tar.gz
bcfg2-6b64a89b2afe88f73f1068fe8a401374aa19e051.tar.bz2
bcfg2-6b64a89b2afe88f73f1068fe8a401374aa19e051.zip
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
Diffstat (limited to 'src')
-rw-r--r--src/lib/Server/Generators/Cfg.py6
1 files changed, 3 insertions, 3 deletions
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