Example #1
0
 def get_system_state(self, path, params):
     """Get an overview of the system state"""
     system_state = SystemState()
     self._populate_versions(system_state.versions)
     system_state.peer_controller_url = self._get_peer_controller_url()
     system_state.summary_sources.CopyFrom(self._get_system_summary(path))
     system_state.site_name = self._config.get('site',
                                               {}).get('name', 'unknown')
     system_state.controller_name = self._get_controller_name()
     self._distill_summary(system_state.summary_sources, system_state)
     return system_state
Example #2
0
 def get_system_state(self, path, params):
     """Get an overview of the system state"""
     system_state = SystemState()
     self._populate_versions(system_state.versions)
     system_state.peer_controller_url = self._get_peer_controller_url()
     system_state.summary_sources.CopyFrom(self._get_system_summary(path))
     system_state.site_name = self._config.site.name or 'unknown'
     system_state.controller_name = self._get_controller_name()
     system_state.authentication_mode = self._get_sys_auth_mode()
     system_state.config_summary.CopyFrom(self._get_config_summary())
     self._distill_summary(system_state.summary_sources, system_state)
     return system_state