Skip to content

Fixed packages_mapping command in cf-bottom - #125

Merged
olehermanse merged 2 commits into
cfengine:masterfrom
larsewi:fix-packages-response-ok
Oct 16, 2026
Merged

olehermanse merged 2 commits into
cfengine:masterfrom
larsewi:fix-packages-response-ok

Conversation

@larsewi

@larsewi larsewi commented Oct 16, 2026

Copy link
Copy Markdown
Contributor
  • Fixed packages_mapping crash on missing Response.ok
  • Fixed error response body being dropped on HTTP errors

larsewi and others added 2 commits October 16, 2026 11:40
Introduced in cfengine#119, which replaced requests with a Response class
that has no ok attribute. Check status_code instead.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Signed-off-by: Lars Erik Wik <lars.erik.wik@northern.tech>
Introduced in cfengine#119. Callers expecting the error JSON crashed on an
empty body.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Signed-off-by: Lars Erik Wik <lars.erik.wik@northern.tech>
@olehermanse
olehermanse merged commit b5f775b into cfengine:master Oct 16, 2026
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

4 participants