-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[MISC] Define charm constants (#862)
- Loading branch information
1 parent
f3b7667
commit d56c485
Showing
7 changed files
with
51 additions
and
25 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -32,6 +32,8 @@ | |
wait_fixed, | ||
) | ||
|
||
from constants import DATABASE_DEFAULT_NAME | ||
|
||
CHARM_BASE = "[email protected]" | ||
CHARM_SERIES = "jammy" | ||
METADATA = yaml.safe_load(Path("./metadata.yaml").read_text()) | ||
|
@@ -325,7 +327,7 @@ async def execute_query_on_unit( | |
unit_address: str, | ||
password: str, | ||
query: str, | ||
database: str = "postgres", | ||
database: str = DATABASE_DEFAULT_NAME, | ||
sslmode: str | None = None, | ||
): | ||
"""Execute given PostgreSQL query on a unit. | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters