Skip to content

Commit

Permalink
Get creds from settings dict if another thread has updated them
Browse files Browse the repository at this point in the history
  • Loading branch information
jwettenhall committed Dec 20, 2024
1 parent 456c657 commit 582d010
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions django_informixdb_vault/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -213,6 +213,9 @@ def get_connection_params(self):
self.settings_dict['USER'] = username
self.settings_dict['PASSWORD'] = password
self.settings_dict['CREDENTIALS_START_TIME'] = datetime.now()
else:
username = self.settings_dict['USER']
password = self.settings_dict['PASSWORD']

conn_params['USER'] = username
conn_params['PASSWORD'] = password
Expand Down

0 comments on commit 582d010

Please sign in to comment.