Skip to content

Commit

Permalink
Update ansible_base/authentication/authenticator_plugins/saml.py
Browse files Browse the repository at this point in the history
Co-authored-by: Brennan Paciorek <[email protected]>
  • Loading branch information
john-westcott-iv and BrennanPaciorek authored Nov 26, 2024
1 parent cf25706 commit 272c9c6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ansible_base/authentication/authenticator_plugins/saml.py
Original file line number Diff line number Diff line change
Expand Up @@ -298,7 +298,7 @@ def extra_data(self, user, backend, response, *args, **kwargs):
data = super().extra_data(user, backend, response, *args, **kwargs)

# Ideally we would always have a DB instance
# But if something was mocked in a test or somehow a db_instance just wasn't past in we don't want to error here
# But if something was mocked in a test or somehow a db_instance just wasn't passed in we don't want to error here
if self.database_instance is None:
return data

Expand Down

0 comments on commit 272c9c6

Please sign in to comment.