def install(): apt_update(fatal=True) apt_install(determine_packages(), fatal=True) if git_install_requested(): git_install(config('openstack-origin-git')) # NOTE(adam_g): # something gets screwy with the requests packages being pulled in # as python-requests-whl /w python-pip-whl and via the UCA, causing # glanceclient usage in the charm to break. Purge it here and let it # be reinstalled during next hook exec, that seems to fix the issue? cmd = ['dpkg', '-P', 'python-pip-whl', 'python-requests-whl', 'python-pip'] subprocess.check_call(cmd)
def install(): apt_update(fatal=True) apt_install(determine_packages(), fatal=True) if git_install_requested(): git_install(config('openstack-origin-git')) # NOTE(adam_g): # something gets screwy with the requests packages being pulled in # as python-requests-whl /w python-pip-whl and via the UCA, causing # glanceclient usage in the charm to break. Purge it here and let it # be reinstalled during next hook exec, that seems to fix the issue? cmd = [ 'dpkg', '-P', 'python-pip-whl', 'python-requests-whl', 'python-pip' ] subprocess.check_call(cmd)
def install(): apt_update(fatal=True) apt_install(determine_packages(), fatal=True) if git_install_requested(): git_install(config('openstack-origin-git'))