def export_getOverallStatus( self ): """ Get the complete status information for the components in the given list """ result = gComponentInstaller.getOverallStatus( getCSExtensions() ) if not result['OK']: return result statusDict = result['Value'] for compType in statusDict: for system in statusDict[compType]: for component in statusDict[compType][system]: result = gComponentInstaller.getComponentModule( gConfig, system, component, compType ) if not result['OK']: statusDict[compType][system][component]['Module'] = "Unknown" else: statusDict[compType][system][component]['Module'] = result['Value'] return S_OK( statusDict )
def export_getOverallStatus(self): """Get the complete status information of all components.""" result = gComponentInstaller.getOverallStatus(extensionsByPriority()) if not result["OK"]: return result statusDict = result["Value"] for compType in statusDict: for system in statusDict[compType]: for component in statusDict[compType][system]: result = gComponentInstaller.getComponentModule( system, component, compType) if not result["OK"]: statusDict[compType][system][component][ "Module"] = "Unknown" else: statusDict[compType][system][component][ "Module"] = result["Value"] return S_OK(statusDict)