remove dead code
This commit is contained in:
parent
0c5dfeab06
commit
5e35ea737e
|
|
@ -724,9 +724,6 @@ class K8s:
|
||||||
stdout=subprocess.PIPE,
|
stdout=subprocess.PIPE,
|
||||||
stderr=subprocess.PIPE)
|
stderr=subprocess.PIPE)
|
||||||
|
|
||||||
def get_patroni_state(self, pod):
|
|
||||||
return pod.metadata.annotations["status"]["state"]
|
|
||||||
|
|
||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
unittest.main()
|
unittest.main()
|
||||||
|
|
|
||||||
|
|
@ -126,7 +126,7 @@ func (p *Patroni) SetPostgresParameters(server *v1.Pod, parameters map[string]st
|
||||||
return p.httpPostOrPatch(http.MethodPatch, apiURLString+configPath, buf)
|
return p.httpPostOrPatch(http.MethodPatch, apiURLString+configPath, buf)
|
||||||
}
|
}
|
||||||
|
|
||||||
//GetPatroniMemberState returns node state reported by Patroni API call.
|
//GetPatroniMemberState returns a state of member of a Patroni cluster
|
||||||
func (p *Patroni) GetPatroniMemberState(server *v1.Pod) (string, error) {
|
func (p *Patroni) GetPatroniMemberState(server *v1.Pod) (string, error) {
|
||||||
|
|
||||||
apiURLString, err := apiURL(server)
|
apiURLString, err := apiURL(server)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue