def upgrade_ubuntu():
    with fabric_settings(warn_only=True):
        # dist-upgrade without a grub config prompt
        # http://askubuntu.com/questions/146921/how-do-i-apt-get-y-dist-upgrade-without-a-grub-config-prompt  # nopep8
        run('DEBIAN_FRONTEND=noninteractive apt-get -y \
        -o Dpkg::Options::="--force-confdef" -o Dpkg::Options::="--force-confold" dist-upgrade')
Execute given code in given globals environment.
dataset/ETHPy150Open rizumu/bootmachine/bootmachine/contrib/distros/rackspace_ubuntu_1210.py/upgrade_ubuntu--crossover with--dataset/ETHPy150Open pytest-dev/pytest-bdd/pytest_bdd/steps.py/execute