Skip to content

Commit

Permalink
Fix up handling of new workshop files/packages as was breaking old ob…
Browse files Browse the repository at this point in the history
…solete mechanism.
  • Loading branch information
GrahamDumpleton committed Apr 21, 2022
1 parent f8fe7df commit a3eef35
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions session-manager/handlers/workshopenvironment.py
Original file line number Diff line number Diff line change
Expand Up @@ -263,7 +263,7 @@ def _substitute_downloads_variables(obj):

workshop_files = workshop_spec.get("workshop", {}).get("files", [])

if workshop_files or packages:
if workshop_files:
vendir_config = {
"apiVersion": "vendir.k14s.io/v1alpha1",
"kind": "Config",
Expand All @@ -286,7 +286,7 @@ def _substitute_downloads_variables(obj):

packages = workshop_spec.get("workshop", {}).get("packages", [])

if workshop_files or packages:
if packages:
vendir_config = {
"apiVersion": "vendir.k14s.io/v1alpha1",
"kind": "Config",
Expand Down

0 comments on commit a3eef35

Please sign in to comment.