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)
This commit is contained in:
Guillaume Raffy 2018-04-09 10:34:01 +00:00
parent 5e959c5c23
commit 6601521ff2
1 changed files with 2 additions and 0 deletions

View File

@ -8,6 +8,8 @@ import re
class SgeConfig: class SgeConfig:
def __init__( self ): def __init__( self ):
self.m_attrs={} self.m_attrs={}
def hasAttr(self, attr_name):
return attr_name in self.m_attrs.keys()
def getAttr( self, strAttrName ): def getAttr( self, strAttrName ):
return self.m_attrs[ strAttrName ] return self.m_attrs[ strAttrName ]
def setAttr( self, strAttrName, strAttrValue ): def setAttr( self, strAttrName, strAttrValue ):