Skip to content

Commit 8c457ec

Browse files
authored
Merge pull request #74 from NCAR/hua-work-common
pg_pass to pgpassword
2 parents 4a4dd91 + 18e9f12 commit 8c457ec

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
44

55
[project]
66
name = "rda_python_common"
7-
version = "2.0.3"
7+
version = "2.0.4"
88
authors = [
99
{ name="Zaihua Ji", email="[email protected]" },
1010
]

src/rda_python_common/pg_password.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
#
33
##################################################################################
44
#
5-
# Title: pgpassword
5+
# Title: pg_password
66
# Author: Zaihua Ji, [email protected]
77
# Date: 2025-10-27
88
# Purpose: python script to retrieve passwords for postgrsql login to connect a
@@ -66,8 +66,8 @@ def main():
6666
PgLOG.pglog(arg + ": Value provided without option", PgLOG.LGEREX)
6767

6868
if dohelp:
69-
print("Usage: pgpassword [-l OpenBaoURL] [-k TokenName] [-d DBNAME] \\")
70-
print(" [-c SCHEMA] [-u USName] [-h DBHOST] [-p DBPORT]")
69+
print("Usage: pg_password [-l OpenBaoURL] [-k TokenName] [-d DBNAME] \\")
70+
print(" [-c SCHEMA] [-u USName] [-h DBHOST] [-p DBPORT]")
7171
print(" -l OpenBao URL to retrieve passwords")
7272
print(" -k OpenBao Token Name to retrieve passwords")
7373
print(" -d PostgreSQL Database Name")

src/rda_python_common/pgpassword.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
#
33
##################################################################################
44
#
5-
# Title: pg_pass
5+
# Title: pgpassword
66
# Author: Zaihua Ji, [email protected]
77
# Date: 2025-10-27
88
# 2025-12-02 convert to class PgPassword
@@ -60,8 +60,8 @@ def read_parameters(self):
6060
else:
6161
self.pglog(arg + ": Value provided without option", self.LGEREX)
6262
if dohelp:
63-
print("Usage: pg_pass [-l OpenBaoURL] [-k TokenName] [-d DBNAME] \\")
64-
print(" [-c SCHEMA] [-u USName] [-h DBHOST] [-p DBPORT]")
63+
print("Usage: pgpassword [-l OpenBaoURL] [-k TokenName] [-d DBNAME] \\")
64+
print(" [-c SCHEMA] [-u USName] [-h DBHOST] [-p DBPORT]")
6565
print(" -l OpenBao URL to retrieve passwords")
6666
print(" -k OpenBao Token Name to retrieve passwords")
6767
print(" -d PostgreSQL Database Name")

0 commit comments

Comments
 (0)