You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Running a community.mongodb.mongodb_user task fails with the message "Unable to connect to database: 'RawConfigParser' object has no attribute 'readfp'".
SUMMARY
Running a
community.mongodb.mongodb_user
task fails with the message "Unable to connect to database: 'RawConfigParser' object has no attribute 'readfp'".readfp()
was replaces withread_file()
as stated on https://docs.python.org/3/library/configparser.html#configparser.ConfigParser.read_fileISSUE TYPE
COMPONENT NAME
mongodb_common.py
ANSIBLE VERSION
COLLECTION VERSION
CONFIGURATION
OS / ENVIRONMENT
OS: NixOS 24.05.20240228.9099616 (Uakari) x86_64
STEPS TO REPRODUCE
Create the admin user for a new mongodb instance
EXPECTED RESULTS
The task will fail with the provided message.
ACTUAL RESULTS
The text was updated successfully, but these errors were encountered: