Skip to content

Commit

Permalink
update comment
Browse files Browse the repository at this point in the history
  • Loading branch information
Ariana Barzinpour authored and omad committed Oct 6, 2023
1 parent 13def79 commit 40a29a6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions nci_environment/dea/scripts/datacube-ensure-user.py
Original file line number Diff line number Diff line change
Expand Up @@ -120,8 +120,8 @@ def find_credentials(pgpass, dbcreds):
""" Find the credential from ~/.pgpass file.
If pgpass file does not exists or If pgpass exists and is empty, then raise 'credentials not found'
else if credentials match the production database ip, return the production database credentials for migration
else if new credentials for migration is already appended to the pgpass file, do nothing
else if credentials match current production database format, do nothing
else raise an error that no valid credentials were found
"""
if not pgpass.exists() or os.path.getsize(pgpass) == 0:
# New user, add new credentials to connect to any database
Expand Down

0 comments on commit 40a29a6

Please sign in to comment.