cloudstack: Use errortext from router in cs_router (#25634)

Signed-off-by: Abhijeet Kasurde <akasurde@redhat.com>
This commit is contained in:
Abhijeet Kasurde 2017-06-13 14:41:53 +05:30 committed by René Moser
parent b7558f5018
commit f65ced0438

View file

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