From f65ced0438668e95d0654820d6a765dd0c5eecde Mon Sep 17 00:00:00 2001 From: Abhijeet Kasurde Date: Tue, 13 Jun 2017 14:41:53 +0530 Subject: [PATCH] cloudstack: Use errortext from router in cs_router (#25634) Signed-off-by: Abhijeet Kasurde --- lib/ansible/modules/cloud/cloudstack/cs_router.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/ansible/modules/cloud/cloudstack/cs_router.py b/lib/ansible/modules/cloud/cloudstack/cs_router.py index f35fc955ac7..7437955d64a 100644 --- a/lib/ansible/modules/cloud/cloudstack/cs_router.py +++ b/lib/ansible/modules/cloud/cloudstack/cs_router.py @@ -317,7 +317,7 @@ class AnsibleCloudStackRouter(AnsibleCloudStack): router = self.cs.changeServiceForRouter(**args) if 'errortext' in router: - self.module.fail_json(msg="Failed: '%s'" % res['errortext']) + self.module.fail_json(msg="Failed: '%s'" % router['errortext']) if state in [ 'restarted', 'started' ]: router = self.start_router()