Skip to content

Commit

Permalink
Add environment information to leappdb
Browse files Browse the repository at this point in the history
  • Loading branch information
dkubek committed Nov 21, 2023
1 parent f5d50f7 commit c32c7d4
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions commands/upgrade/util.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
import json
import os
import shutil
import sys
import tarfile
from datetime import datetime

Expand Down Expand Up @@ -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

Expand Down

0 comments on commit c32c7d4

Please sign in to comment.