Skip to content

Commit 99d1c34

Browse files
Merge pull request #56 from ctrlplanedev/fix-syncVariables-status
fix: resource variableSync failure
2 parents 7d55a78 + a4cc364 commit 99d1c34

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

internal/api/providers/resource.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,7 @@ func (r *ResourceItemSpec) syncVariables(ctx Context) error {
171171
if varsResp.StatusCode() == 404 {
172172
return fmt.Errorf("resource not found yet, retrying")
173173
}
174-
if varsResp.StatusCode() != 204 {
174+
if varsResp.StatusCode() != 202 {
175175
return retry.Unrecoverable(fmt.Errorf("failed to update resource variables: %s", string(varsResp.Body)))
176176
}
177177
return nil

0 commit comments

Comments
 (0)