Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

remove use of deprecated commands and functions #5

Merged
merged 3 commits into from
Oct 4, 2023

Conversation

grondo
Copy link
Contributor

@grondo grondo commented Oct 4, 2023

This PR switches the flux PAM module away from the deprecated flux_job_list(3) funciton and flux-mini(1) command.

Problem: flux_job_list(3) has been deprecated, but it is used by
the pam_flux PAM module.

Drop flux_job_list() in favor of using flux_rpc() directly.
Problem: On error in flux_rpc_pack(3), a future may be leaked.

Destroy the future in the error path.
Problem: flux-mini(1) has been deprecated, but is still in use
in the pam-flux testsuite.

Replace use of flux-mini(1) with flux-submit(1).
Copy link
Member

@garlick garlick left a comment

Choose a reason for hiding this comment

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

LGTM!

@grondo grondo added the merge-when-passing mergify will merge this PR once all tests are passing label Oct 4, 2023
@grondo
Copy link
Contributor Author

grondo commented Oct 4, 2023

Thanks!

@mergify mergify bot merged commit 0d39066 into flux-framework:main Oct 4, 2023
7 checks passed
@grondo grondo deleted the nix-job_list branch October 4, 2023 16:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
merge-when-passing mergify will merge this PR once all tests are passing
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants