We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f40e413 commit eb42256Copy full SHA for eb42256
1 file changed
postgresql/cluster.py
@@ -65,7 +65,9 @@ class Cluster(pg_api.Cluster):
65
def state(self):
66
if self.running():
67
return 'running'
68
- return 'not running'
+ if not os.path.exists(self.data_directory):
69
+ return 'void'
70
+ return 'stopped'
71
72
def _e_metas(self):
73
state = self.state
0 commit comments