cloudstack: Use errortext from router in cs_router (#25634)
Signed-off-by: Abhijeet Kasurde <akasurde@redhat.com>
This commit is contained in:
parent
b7558f5018
commit
f65ced0438
1 changed files with 1 additions and 1 deletions
|
@ -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…
Reference in a new issue