Merge "upgrade-charm: filter previously installed packages"

This commit is contained in:
Zuul 2019-01-24 11:38:59 +00:00 committed by Gerrit Code Review
commit 74bfb5a407
1 changed files with 2 additions and 1 deletions

View File

@ -419,7 +419,8 @@ def relation_broken():
@hooks.hook('upgrade-charm')
@harden()
def upgrade_charm():
apt_install(determine_packages(), fatal=True)
apt_install(filter_installed_packages(determine_packages()),
fatal=True)
# NOTE: ensure psutil install for hugepages configuration
status_set('maintenance', 'Installing apt packages')
apt_install(filter_installed_packages(['python-psutil']))