Skip to content

Commit

Permalink
fix: revert .git.git context
Browse files Browse the repository at this point in the history
  • Loading branch information
moshloop committed Oct 31, 2024
1 parent 7fe3a1d commit ed79546
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions query/gitops.go
Original file line number Diff line number Diff line change
Expand Up @@ -54,10 +54,11 @@ type GitOpsSource struct {
}

func (t *GitOpsSource) AsMap() map[string]any {
return map[string]any{
"git": t.Git.AsMap(),
"kustomize": t.Kustomize.AsMap(),
}
m := t.Git.AsMap()
// FIXME - git duplicated for backwards compatibility remove once all playbooks updated
m["git"] = t.Git.AsMap()
m["kustomize"] = t.Kustomize.AsMap()
return m
}

func getOrigin(ci *models.ConfigItem) (map[string]any, error) {
Expand Down

0 comments on commit ed79546

Please sign in to comment.