CCI-MOC / moc-openstack-tools

Tools for OpenStack administration, user/project management, etc.
Apache License 2.0
0 stars 8 forks source link

Update reset-password.py to reference the correct config in settings.ini #84

Closed greyspectrum closed 6 years ago

greyspectrum commented 6 years ago

This is a bug fix in the password reset functionality. Currently, reset-password.py refers to a config called "reset_password_email," which no longer exists in settings.ini. This config is now called "password_reset_email." This patch changes reset-password.py to refer to the existing config name. The traceback from running reset-password.py is below, for reference.

Traceback (most recent call last):
  File "reset-password.py", line 108, in <module>
    email_config.update(dict(config.items('reset_password_email')))
  File "/usr/lib64/python2.7/ConfigParser.py", line 642, in items
    raise NoSectionError(section)
ConfigParser.NoSectionError: No section: 'reset_password_email'