def _update_cinder_config(cls):
        """Parse in-memory file to update OSLO configuration used by Cinder."""
        cls._config_string_io.seek(0)
        cls._parser.write(cls._config_string_io)

        # Check if we have any multiopt
        cls._config_string_io.seek(0)
        current_cfg = cls._config_string_io.read()
        if '\n\t' in current_cfg:
            cls._config_string_io.seek(0)
            cls._config_string_io.write(current_cfg.replace('\n\t', '\n'))

        cls._config_string_io.seek(0)
        cfg.CONF.reload_config_files()
def _update_cinder_config ( cls ) : cls . _config_string_io . seek ( 0 ) cls . _parser . write ( cls . _config_string_io ) cls . _config_string_io . seek ( 0 ) current_cfg = cls . _config_string_io . read ( ) if '\n\t' in current_cfg : cls . _config_string_io . seek ( 0 ) cls . _config_string_io . write ( current_cfg . replace ( '\n\t' , '\n' ) ) cls . _config_string_io . seek ( 0 ) cfg . CONF . reload_config_files ( )
Parse in-memory file to update OSLO configuration used by Cinder.