(self)
| 307 | raise ClusterError('cannot destroy {} cluster'.format(status)) |
| 308 | |
| 309 | def _get_connection_spec(self): |
| 310 | if self._connection_addr is None: |
| 311 | self._connection_addr = self._connection_addr_from_pidfile() |
| 312 | |
| 313 | if self._connection_addr is not None: |
| 314 | if self._connection_spec_override: |
| 315 | args = self._connection_addr.copy() |
| 316 | args.update(self._connection_spec_override) |
| 317 | return args |
| 318 | else: |
| 319 | return self._connection_addr |
| 320 | |
| 321 | def get_connection_spec(self): |
| 322 | status = self.get_status() |
no test coverage detected