From 6601521ff2200928a503884f987b16472d05b70f Mon Sep 17 00:00:00 2001 From: Guillaume Raffy Date: Mon, 9 Apr 2018 10:34:01 +0000 Subject: [PATCH] Bug 2209 - installer gridengine qmaster sur physix-master fixed bug that causes SgeConfigurator when the sge user 'root' doesn't yet exists (which is the case on a fresh server install) --- SunGridEngine/SgeConfig.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/SunGridEngine/SgeConfig.py b/SunGridEngine/SgeConfig.py index a8106e1..432c8e8 100755 --- a/SunGridEngine/SgeConfig.py +++ b/SunGridEngine/SgeConfig.py @@ -8,6 +8,8 @@ import re class SgeConfig: def __init__( self ): self.m_attrs={} + def hasAttr(self, attr_name): + return attr_name in self.m_attrs.keys() def getAttr( self, strAttrName ): return self.m_attrs[ strAttrName ] def setAttr( self, strAttrName, strAttrValue ):