State mongodb_user.present applies changes when modifying roles for an existing user while Test=true #53962
Labels
Bug
broken, incorrect, or confusing behavior
P4
Priority 4
severity-low
4th level, cosemtic problems, work around exists
Milestone
Description of Issue
When you apply mongodb_user.present for an existing user modifying his roles and/or his password, it applies changes even when applying with Test=true. If it's a new user everything works as it should, but when updating an existing user not.
Setup
Steps to Reproduce Issue
When applying states using test=true, even if it shows that "nothing has happened", mongodb user has been modified at MongoDb server. Due to mongodb_user.present state code, it doesn't display any log message when mongodb user already exists.
Versions Report
master:
minion:
The text was updated successfully, but these errors were encountered: