diff --git a/lib/ansible/modules/extras/network/haproxy.py b/lib/ansible/modules/extras/network/haproxy.py index 0fb4beb3004..4cc1c1c618b 100644 --- a/lib/ansible/modules/extras/network/haproxy.py +++ b/lib/ansible/modules/extras/network/haproxy.py @@ -312,9 +312,9 @@ class HAProxy(object): Figure out what you want to do from ansible, and then do it. """ - self.get_current_state(self.host, self.backend) - self.previous_states = ','.join(self.status_server) - self.previous_weights = ','.join(self.status_weight) + self.get_current_state(self.host, self.backend) + self.previous_states = ','.join(self.status_server) + self.previous_weights = ','.join(self.status_weight) # toggle enable/disbale server if self.state == 'enabled':