Skip to content

Commit 84fff2b

Browse files
committed
fix: update status code check for resource variable synchronization
1 parent 70edb43 commit 84fff2b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cmd/ctrlc/root/sync/pipe/pipe.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -277,7 +277,7 @@ func syncResourceVariables(
277277
if varsResp.StatusCode() == 404 {
278278
return fmt.Errorf("resource '%s' not found yet, retrying", resource.Identifier)
279279
}
280-
if varsResp.StatusCode() != 204 {
280+
if varsResp.StatusCode() >= 400 {
281281
return retry.Unrecoverable(
282282
fmt.Errorf("failed to update resource variables for '%s': %s", resource.Identifier, string(varsResp.Body)),
283283
)

0 commit comments

Comments
 (0)