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

fix(syntax): param 'refresh' replaces 'refresh_db' #211

Merged
merged 1 commit into from
Jul 3, 2019
Merged

fix(syntax): param 'refresh' replaces 'refresh_db' #211

merged 1 commit into from
Jul 3, 2019

Conversation

noelmcloughlin
Copy link
Member

Fix this

[WARNING ] /usr/lib/python3/dist-packages/salt/states/pkgrepo.py:313: 
DeprecationWarning: The 'refresh_db' argument to 'pkg.mod_repo' has 
been renamed to 'refresh'. Support for using 'refresh_db' will 
be removed in the Neon release of Salt.

@myii
Copy link
Member

myii commented Jul 2, 2019

@noelmcloughlin Will we still need refresh_db for the previous versions of Salt that we're still supporting (back to 2017.7 at the time of this comment)? I.e. Does it need to be conditional?

@noelmcloughlin
Copy link
Member Author

I.e. Does it need to be conditional?

No, its supported in 2017.8
https://docs.saltstack.com/en/2017.7/ref/states/all/salt.states.pkg.html#salt.states.pkg.installed

@myii
Copy link
Member

myii commented Jul 3, 2019

@noelmcloughlin The error message above mentions pkg.mod_repo (module), not pkg.installed (state). Looking a bit deeper, it appears that the introduction of refresh (in place of refresh_db) goes back as far as 2018.2:

So this change will need to be tested on 2017.7.

@noelmcloughlin
Copy link
Member Author

Let me check again. thanks.

@noelmcloughlin
Copy link
Member Author

Good catch myii. refresh_db is "Deprecated since version 2018.3.0: Use refresh instead."

I'll update commit with a conditional.

@myii myii merged commit 59810ad into saltstack-formulas:master Jul 3, 2019
@myii
Copy link
Member

myii commented Jul 3, 2019

Merged, thanks @noelmcloughlin.

@noelmcloughlin noelmcloughlin deleted the repo branch July 3, 2019 23:59
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.

2 participants