Skip to content

Correct the logic on trust checking in IPATrustPackageCheck - #379

Merged
rcritten merged 2 commits into
freeipa:masterfrom
rcritten:issue_378
May 4, 2026
Merged

Correct the logic on trust checking in IPATrustPackageCheck#379
rcritten merged 2 commits into
freeipa:masterfrom
rcritten:issue_378

Conversation

@rcritten

@rcritten rcritten commented May 4, 2026

Copy link
Copy Markdown
Collaborator

The check would be skipped if either not a trust controller or
a trust agent. It should skip it if both conditions are true.

This resulted in an incorrect message in the output because it
skipped if the server was a controller. If it was not then
the function exited without checking to see if it was an agent
instead.

Fixes: #378

Signed-off-by: Rob Crittenden rcritten@redhat.com

Also update the Fedora versions to test against.

Summary by Sourcery

Fix trust role detection in IPATrustPackageCheck and update CI Fedora test matrix.

Bug Fixes:

  • Correct trust controller/agent check to only skip when the server is neither a trust controller nor a trust agent, preventing incorrect skip messages.

CI:

  • Update GitHub Actions Fedora release matrix to test against Fedora 43 and 44.

rcritten added 2 commits May 4, 2026 11:19
The check would be skipped if either not a trust controller or
a trust agent. It should skip it if both conditions are true.

This resulted in an incorrect message in the output because it
skipped if the server was a controller. If it was not then
the function exited without checking to see if it was an agent
instead.

Fixes: freeipa#378

Signed-off-by: Rob Crittenden <rcritten@redhat.com>
F42 was EOL in May, 2026.

Signed-off-by: Rob Crittenden <rcritten@redhat.com>

@sourcery-ai sourcery-ai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hey - I've reviewed your changes and they look great!


Sourcery is free for open source - if you like our reviews please consider sharing them ✨
Help me be more useful! Please click 👍 or 👎 on each comment and I'll use the feedback to improve your reviews.

@rjeffman rjeffman left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. Fixes the referenced issue.

@rcritten
rcritten merged commit 4580854 into freeipa:master May 4, 2026
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

IPATrustPackageCheck skipped message is incorrect

2 participants