def _configure_ec2tools(self, ec2conn, ec2_instance_id, vol_confs):
        logger.info("Configuring /root/.ec2tools.ini")
        config = ConfigParser.ConfigParser()
        config.add_section('volume_aliases')
        for vol_label in vol_confs.keys():
            config.set('volume_aliases', vol_label, vol_label)

        for vol_label, vol_conf in vol_confs.items():
            attached_vol = _get_attached_volume(
                ec2conn, ec2_instance_id, vol_conf['device'])

            config.add_section(vol_label)
            config.set(vol_label, 'volume_id', attached_vol.id)
            config.set(vol_label, 'mountpoint', vol_conf['mount_point'])

        with NamedTemporaryFile() as ec2_file:
            config.write(ec2_file)
            ec2_file.file.flush()
            with hide(*fab_output_hides):
                put(ec2_file.name, '/tmp/.ec2tools.ini')
                sudo('mv /tmp/.ec2tools.ini /root/')
Given a list of rendered widgets (as strings), returns a Unicode string
dataset/ETHPy150Open winhamwr/neckbeard/neckbeard/cloud_provisioners/aws/ec2.py/Ec2NodeDeployment._configure_ec2tools--crossover with--dataset/ETHPy150Open jschrewe/django-mongodbforms/mongodbforms/widgets.py/BaseContainerWidget.format_output