Skip to content

Commit

Permalink
Merge pull request #70 from lieryan/nopbi/fix-null-environment-in-uns…
Browse files Browse the repository at this point in the history
…etenv

fix: fix unsetenv to tolerate `environment: null`
  • Loading branch information
jarekwg authored Mar 14, 2024
2 parents bcaa588 + cb21e26 commit 72c4d4f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gitops/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -326,7 +326,7 @@ def unsetenv(ctx, filter, values, exclude=""):
print(success_negative("Aborted."))
return
for app in apps:
environment = app.values.get("environment", {})
environment = app.values.get("environment") or {}
for e in splitenvs:
if e in environment:
del environment[e]
Expand Down

0 comments on commit 72c4d4f

Please sign in to comment.