Skip to content

Commit

Permalink
Reset active status when removing extensions dependency block (#481)
Browse files Browse the repository at this point in the history
  • Loading branch information
dragomirp authored May 24, 2024
1 parent e7a825d commit ac7d688
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/charm.py
Original file line number Diff line number Diff line change
Expand Up @@ -544,6 +544,7 @@ def enable_disable_extensions(self, database: str = None) -> None:
extensions[extension] = enable
if self.is_blocked and self.unit.status.message == EXTENSIONS_DEPENDENCY_MESSAGE:
self._set_active_status()
original_status = self.unit.status
if not isinstance(original_status, UnknownStatus):
self.unit.status = WaitingStatus("Updating extensions")
try:
Expand Down
2 changes: 1 addition & 1 deletion tests/integration/test_backups.py
Original file line number Diff line number Diff line change
Expand Up @@ -513,7 +513,7 @@ async def test_invalid_config_and_recovery_after_fixing_it(


@pytest.mark.group(1)
async def test_delete_pod(ops_test: OpsTest):
async def test_delete_pod(ops_test: OpsTest, github_secrets) -> None:
logger.info("Getting original backup config")
database_app_name = f"new-{DATABASE_APP_NAME}"
original_pgbackrest_config = await cat_file_from_unit(
Expand Down

0 comments on commit ac7d688

Please sign in to comment.