Fix call to os.execl

It looks like os.execl does not support an empty second argument
under py3. This change fixes the call for py3.

Change-Id: Iffcd2c68b03013384ad3f1d2b5e8805b84b3972a
Closes-Bug: 1802274
This commit is contained in:
Liam Young 2018-11-08 13:36:05 +00:00
parent 32e4d822c1
commit 8bdb5d5f76
1 changed files with 1 additions and 1 deletions

View File

@ -659,7 +659,7 @@ def save_script_rc():
def do_openstack_upgrade_reexec(configs):
do_openstack_upgrade(configs)
log("Re-execing hook to pickup upgraded packages", level=INFO)
os.execl('./hooks/config-changed-postupgrade', '')
os.execl('/usr/bin/env', 'python3', './hooks/config-changed-postupgrade')
def do_openstack_upgrade(configs):