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()