Skip to content

Commit

Permalink
fix: Do not remove data (grafana#585)
Browse files Browse the repository at this point in the history

Co-authored-by: sh0rez <[email protected]>
  • Loading branch information
Duologic and sh0rez authored Aug 5, 2021
1 parent 6426883 commit 4ea9f6b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/tanka/evaluators.go
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ local noDataEnv(object) =
&& std.objectHas(object, 'kind')
then
if object.kind == 'Environment'
then object { data:: {} }
then object { data+:: {} }
else {}
else
std.mapWithKey(
Expand Down Expand Up @@ -95,7 +95,7 @@ local singleEnv(object) =
then
if object.kind == 'Environment'
&& object.metadata.name == '%s'
then object { data:: {} }
then object { data:: super.data }
else {}
else
std.mapWithKey(
Expand Down

0 comments on commit 4ea9f6b

Please sign in to comment.