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

Signed-off-by: Abhijeet Kasurde <akasurde@redhat.com>
pull/25642/head
Abhijeet Kasurde 8 years ago committed by René Moser
parent b7558f5018
commit f65ced0438

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

Loading…
Cancel
Save