diff --git a/commands/upgrade/util.py b/commands/upgrade/util.py index b11265ee16..d604304b26 100644 --- a/commands/upgrade/util.py +++ b/commands/upgrade/util.py @@ -3,6 +3,7 @@ import json import os import shutil +import sys import tarfile from datetime import datetime @@ -233,6 +234,8 @@ def prepare_configuration(args): 'debug': os.getenv('LEAPP_DEBUG', '0'), 'verbose': os.getenv('LEAPP_VERBOSE', '0'), 'whitelist_experimental': args.whitelist_experimental or (), + 'environment': {env: os.getenv(env) for env in os.environ if env.startswith('LEAPP_')}, + 'cmd': sys.argv, } return configuration