From 8a0c192c36e8203de393e31a8ae205f6cf5f75fe Mon Sep 17 00:00:00 2001 From: Yuwei Zhou Date: Wed, 11 Apr 2018 10:22:27 -0700 Subject: [PATCH] Fixes new created lb doesn't return anything (#38560) --- lib/ansible/modules/cloud/azure/azure_rm_loadbalancer.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/ansible/modules/cloud/azure/azure_rm_loadbalancer.py b/lib/ansible/modules/cloud/azure/azure_rm_loadbalancer.py index b0231c23b79..def476baaef 100755 --- a/lib/ansible/modules/cloud/azure/azure_rm_loadbalancer.py +++ b/lib/ansible/modules/cloud/azure/azure_rm_loadbalancer.py @@ -731,7 +731,7 @@ class AzureRMLoadBalancer(AzureRMModuleBase): load_balancing_rules=load_balancing_rules_param ) - self.create_or_update_load_balancer(param) + self.results['state'] = self.create_or_update_load_balancer(param) elif self.state == 'absent' and changed: self.delete_load_balancer() self.results['state'] = None