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

[master] fix passing wrong keyword arguments to cp.cache_file in pkg.installed with sources #64110

Closed
wants to merge 1 commit into from

Conversation

mtorromeo
Copy link
Contributor

What does this PR do?

In salt 3006 I started getting TypeError: salt.loaded.int.module.cp.cache_file() got multiple values for keyword argument 'saltenv' errors in pkg.installed states.

I tracked it down to commit 88b2dd1 which modified pkg.py by passing all kwargs to cp.cache_file, resulting in duplicated saltenv and other invalid keyword arguments.

Merge requirements satisfied?

[NOTICE] Bug fixes or features added to Salt require tests.

Commits signed with GPG?

Yes

@mtorromeo mtorromeo requested a review from a team as a code owner April 19, 2023 10:32
@mtorromeo mtorromeo requested review from dwoz and removed request for a team April 19, 2023 10:32
@salt-project-bot-prod-environment salt-project-bot-prod-environment bot changed the title fix passing wrong keyword arguments to cp.cache_file in pkg.installed with sources [master] fix passing wrong keyword arguments to cp.cache_file in pkg.installed with sources Apr 19, 2023
@SGA-max-faxalv
Copy link

Reproduced issue.

@OrangeDog
Copy link
Contributor

Fixes #64118

@s0undt3ch
Copy link
Collaborator

This fix has been backported to 3006.x in #64179 and a regression test has been added.

Thank You @mtorromeo for the fix!

@s0undt3ch s0undt3ch closed this Apr 27, 2023
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.

4 participants