Skip to content

Commit

Permalink
Read packages from environment variables (#1002)
Browse files Browse the repository at this point in the history
Signed-off-by: Yee Hing Tong <[email protected]>
  • Loading branch information
wild-endeavor authored and eapolinario committed Jun 17, 2022
1 parent 9de00b4 commit 5bc9438
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions flytekit/clis/sdk_in_container/pyflyte.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,8 @@ def main(ctx, pkgs=None, config=None):
"""
ctx.obj = dict()

# Handle package management - get from config if not specified on the command line
pkgs = pkgs or []
# Handle package management - get from the command line, the environment variables, then the config file.
pkgs = pkgs or LocalSDK.WORKFLOW_PACKAGES.read() or []
if config:
ctx.obj[CTX_CONFIG_FILE] = config
cfg = configuration.ConfigFile(config)
Expand Down

0 comments on commit 5bc9438

Please sign in to comment.