-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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
module mysql, mysql_user.present broken in 2019.2.0 #51876
Comments
Hello @garethgreenaway , I think the problem was introduced by 9265195 When the If I set If |
I believe the above PR fixes the issues here, if you're able to try out the changes that would be greatly appreciated. |
May have jumped the gun, there are a few other functions that need to be updated. Stay tuned 😄 |
Ok, thanks @garethgreenaway 👍 |
Okay. Should have taken care of the various bugs reported, if you're able to test the changes in the PR above that would be greatly appreciated. |
All of my tests pass. I confirm you fixed it. thanks a lot @garethgreenaway |
@ymasson Thanks for the confirmation! 😄 |
Sounds like this one is fixed, so closing out. If the problem persists please feel free to reopen this issue or another one. |
Description of Issue/Question
In 2019.2.0 , mysql_user.present can't verifiy if user exist.
(Linked with #51866 ?)
Setup
My test state
I have setup 2 VM (mdb1 and mdb2), Debian 9.8, with salt-minion installed from Salt repository. And MariaDB 10.3 installed from MariaDB repository.
first apply:
Second apply:
Debug Logs
Logs on second apply.
2019.2.0:
2018.3.3:
Workaround
It seems user_exist function try to use the defined user instead of 'admin' user for verification, and with 'host=localhost'.
If I add this in state:
It's ok on first apply in 2019.2.0:
The text was updated successfully, but these errors were encountered: