def getSections( self, sectionPath, listOrdered = True ): gRefresher.refreshConfigurationIfNeeded() sectionList = gConfigurationData.getSectionsFromCFG( sectionPath, ordered = listOrdered ) if type( sectionList ) == types.ListType: return S_OK( sectionList ) else: return S_ERROR( "Path %s does not exist or it's not a section" % sectionPath )
def getSections(self, sectionPath, listOrdered=True): """ Get configuration sections :param str sectionPath: section path :param bool listOrdered: ordered :return: S_OK(list)/S_ERROR() """ gRefresher.refreshConfigurationIfNeeded() sectionList = gConfigurationData.getSectionsFromCFG( sectionPath, ordered=listOrdered) if isinstance(sectionList, list): return S_OK(sectionList) else: return S_ERROR("Path %s does not exist or it's not a section" % sectionPath)
def getSections(self, sectionPath): return gConfigurationData.getSectionsFromCFG(sectionPath, self.cfgData)
def getSections( self, sectionPath ): return gConfigurationData.getSectionsFromCFG( sectionPath, self.cfgData )