From 1a63b8c1190e0962b9440336686bb6a9ec0fda26 Mon Sep 17 00:00:00 2001 From: Narayan Desai Date: Tue, 31 Aug 2004 14:48:59 +0000 Subject: fix syntax errors (Logical change 1.46) git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@278 ce84e21b-d406-0410-9b95-82705330c041 --- src/lib/Server/Generators/servicemgr.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/lib/Server/Generators/servicemgr.py b/src/lib/Server/Generators/servicemgr.py index d2c2a937f..0fb7ec3e6 100644 --- a/src/lib/Server/Generators/servicemgr.py +++ b/src/lib/Server/Generators/servicemgr.py @@ -39,8 +39,8 @@ class ServiceList(SingleXMLFileBacked): def Sort(self, m1, m2): d = {('Global','Host'):-1,('Global','Image'):-1,("Global",'Class'):-1, - ('Image', 'Global'):1, ('Image', 'Image'):0, ('Image', 'Host'):1, ('Image':'Class'):-1, - ('Class','Global'):1, ('Class', 'Image'):1, ('Class','Class'):0, ('Class', 'Host'), -1, + ('Image', 'Global'):1, ('Image', 'Image'):0, ('Image', 'Host'):1, ('Image', 'Class'):-1, + ('Class','Global'):1, ('Class', 'Image'):1, ('Class','Class'):0, ('Class', 'Host'): -1, ('Host', 'Global'):1, ('Host', 'Image'):1, ('Host','Class'):1, ('Host','Host'):0} if d.has_key((m1[0][0], m2[0][0])): return d[(m1[0][0],m2[0][0])] -- cgit v1.2.3-1-g7c22