def _get_inactive_history(self, name, is_component=False): # If it already exists load it try: inactive = InactiveConfigHolder(MACROS, self._vc, ConfigurationFileManager()) inactive.load_inactive(name, is_component) # Get previous history history = inactive.get_history() except IOError as err: # Config doesn't exist therefore start new history history = list() return history
def load_config(self, name, is_component=False): """Loads an inactive configuration or component. Args: name (string): The name of the configuration to load is_component (bool): Whether it is a component or not Returns: InactiveConfigHolder : The holder for the requested configuration """ config = InactiveConfigHolder(MACROS, self._vc, self.file_manager) config.load_inactive(name, is_component) return config