Fix upgrades from older charm versions

Ensure that netaddr and netifaces are installed on upgrade from
older py2 based charms to the newer py3 based execution.

Change-Id: I1c7b2eb545e5ef5b40ab2db5a1a968ceb7d916e1
Closes-Bug: 1738979
This commit is contained in:
James Page 2017-12-20 12:01:24 +00:00
parent ed84524e3b
commit 023b086b0d
2 changed files with 2 additions and 2 deletions

View File

@ -2,7 +2,7 @@
# Wrapper to deal with newer Ubuntu versions that don't have py2 installed
# by default.
declare -a DEPS=('apt' 'netaddr' 'netifaces' 'pip' 'yaml')
declare -a DEPS=('apt' 'pip' 'yaml')
check_and_install() {
pkg="${1}-${2}"

View File

@ -2,7 +2,7 @@
# Wrapper to ensure that python dependencies are installed before we get into
# the python part of the hook execution
declare -a DEPS=('dnspython' 'pyudev')
declare -a DEPS=('dnspython' 'pyudev' 'netaddr' 'netifaces')
check_and_install() {
pkg="${1}-${2}"