Skip to content

Conversation

@osamakader
Copy link
Contributor

@osamakader osamakader commented Sep 27, 2025

  • Change function signatures to return error instead of calling os.Exit()
  • Update cobra commands to use RunE instead of Run for proper error handling
  • Remove unused imports (fmt, os, define)
  • Remove FIXME comments about error handling inconsistency

This allows defer statements to run properly and improves testability.

Does this PR introduce a user-facing change?

None

- Change function signatures to return error instead of calling os.Exit()
- Update cobra commands to use RunE instead of Run for proper error handling
- Remove unused imports (fmt, os, define)
- Remove FIXME comments about error handling inconsistency

This allows defer statements to run properly and improves testability.

Signed-off-by: Osama Abdelkader <osama.abdelkader@gmail.com>
@openshift-ci openshift-ci bot added do-not-merge/release-note-label-needed Enforce release-note requirement, even if just None release-note-none and removed do-not-merge/release-note-label-needed Enforce release-note requirement, even if just None labels Sep 27, 2025
@Honny1 Honny1 added the No New Tests Allow PR to proceed without adding regression tests label Sep 29, 2025
Copy link
Member

@Honny1 Honny1 left a comment

Choose a reason for hiding this comment

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

Thanks, LGTM. I've added the No New Tests label, so let's see if the CI passes. Could you please retrigger this CI job? https://cirrus-ci.com/task/6034581192704000

/LGTM

@openshift-ci openshift-ci bot added the lgtm Indicates that a PR is ready to be merged. label Sep 29, 2025
@osamakader
Copy link
Contributor Author

Thanks @Honny1, I just re-triggered it.

Copy link
Member

@baude baude left a comment

Choose a reason for hiding this comment

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

LGTM

@openshift-ci
Copy link
Contributor

openshift-ci bot commented Sep 29, 2025

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: baude, osamakader

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@openshift-ci openshift-ci bot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Sep 29, 2025
@openshift-merge-bot openshift-merge-bot bot merged commit b3ada6c into containers:main Sep 29, 2025
81 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

approved Indicates a PR has been approved by an approver from all required OWNERS files. lgtm Indicates that a PR is ready to be merged. No New Tests Allow PR to proceed without adding regression tests release-note-none

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants