Skip to content

Commit

Permalink
engine: resources: Respect the apply variable
Browse files Browse the repository at this point in the history
Woops!
  • Loading branch information
purpleidea committed Sep 2, 2023
1 parent 1d10f85 commit 4149399
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions engine/resources/pippet.go
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,10 @@ func (obj *PippetRes) Watch(ctx context.Context) error {

// CheckApply synchronizes the resource if required.
func (obj *PippetRes) CheckApply(apply bool) (bool, error) {
if !apply {
return false, nil
}

changed, err := applyPippetRes(obj.runner, obj)
if err != nil {
return false, fmt.Errorf("pippet: %s[%s]: ERROR - %v", obj.Type, obj.Title, err)
Expand Down

0 comments on commit 4149399

Please sign in to comment.