From c426481b33766b12f4b7745c933b8c2fb3cd9b0f Mon Sep 17 00:00:00 2001 From: Abhijeet Kasurde Date: Thu, 15 Jun 2017 23:15:40 +0530 Subject: [PATCH] Add command variable in failure message (#25674) Signed-off-by: Abhijeet Kasurde --- lib/ansible/modules/cloud/misc/virt.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/ansible/modules/cloud/misc/virt.py b/lib/ansible/modules/cloud/misc/virt.py index b0c84a46351..6bc1babe8bf 100644 --- a/lib/ansible/modules/cloud/misc/virt.py +++ b/lib/ansible/modules/cloud/misc/virt.py @@ -514,7 +514,7 @@ def core(module): return VIRT_SUCCESS, res else: - module.fail_json(msg="Command %s not recognized" % basecmd) + module.fail_json(msg="Command %s not recognized" % command) module.fail_json(msg="expected state or command parameter to be specified")