Skip to content

Commit

Permalink
fix ClonedRepoGitlabPersistence (#4510)
Browse files Browse the repository at this point in the history
Signed-off-by: Feng Huang <[email protected]>
  • Loading branch information
BumbleFeng authored Jun 27, 2024
1 parent 9438895 commit b0b1c10
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion reconcile/templating/renderer.py
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ def __exit__(self, exc_type: Any, exc_value: Any, traceback: Any) -> None:
raise ValueError("ClonedRepoGitlabPersistence.result not set!")
self.result.outputs = self.outputs

if self.dry_run:
if self.dry_run or not self.outputs:
return

self.mr_manager.housekeeping()
Expand Down Expand Up @@ -347,6 +347,7 @@ def reconcile(
)
with persistence as p:
p.result = result
p.outputs = []
for item in for_each_items:
self.reconcile_template_collection(
collection=collection,
Expand Down

0 comments on commit b0b1c10

Please sign in to comment.