def _write_conf(self, config):
        try:
            LOG.debug('Re-wrote %s', CONF.console_xvp_conf)
            with open(CONF.console_xvp_conf, 'w') as cfile:
                cfile.write(config)
        except __HOLE__:
            with excutils.save_and_reraise_exception():
                LOG.exception(_LE("Failed to write configuration file"))
dataset/ETHPy150Open BU-NU-CLOUD-SP16/Trusted-Platform-Module-nova/nova/console/xvp.py/XVPConsoleProxy._write_conf