From 577de058a489901bdd0b4ba78aef09a26ffd302a Mon Sep 17 00:00:00 2001 From: Jociele Padilha Date: Tue, 28 Nov 2023 16:46:49 +0100 Subject: [PATCH] add return in switch_pgdata --- postgres-appliance/major_upgrade/pg_upgrade.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/postgres-appliance/major_upgrade/pg_upgrade.py b/postgres-appliance/major_upgrade/pg_upgrade.py index c6cd59fc0..da47fee4d 100644 --- a/postgres-appliance/major_upgrade/pg_upgrade.py +++ b/postgres-appliance/major_upgrade/pg_upgrade.py @@ -238,6 +238,8 @@ def switch_pgdata(self): """ Switche the PostgreSQL data directory by renaming the current data directory to a old directory, and renaming the new data directory to the current data directory. + + :returns: bool: True if the PostgreSQL data directory was successfully switched, False otherwise. """ self._old_data_dir = self._data_dir + '_old' self.cleanup_old_pgdata()