From 1ccfef9c5ac24186b750a40ad691559b7648a6b6 Mon Sep 17 00:00:00 2001 From: Abhijeet Kasurde Date: Wed, 4 Dec 2019 03:32:47 +0530 Subject: [PATCH] [2.9] VMware: Fix typo in fail_json in vmware_guest_powerstate (#65163) Fixed typo from "chanaged" to "changed" Fixes: #65161 Signed-off-by: Abhijeet Kasurde (cherry picked from commit d7039b66332af281fb8b529697c601dfca3ad5d2) --- changelogs/fragments/typo_fix_vmware_guest_powerstate.yml | 2 ++ lib/ansible/modules/cloud/vmware/vmware_guest_powerstate.py | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) create mode 100644 changelogs/fragments/typo_fix_vmware_guest_powerstate.yml diff --git a/changelogs/fragments/typo_fix_vmware_guest_powerstate.yml b/changelogs/fragments/typo_fix_vmware_guest_powerstate.yml new file mode 100644 index 00000000000..db2fc5eee97 --- /dev/null +++ b/changelogs/fragments/typo_fix_vmware_guest_powerstate.yml @@ -0,0 +1,2 @@ +bugfixes: +- Fixed typo in vmware_guest_powerstate module (https://github.com/ansible/ansible/issues/65161). diff --git a/lib/ansible/modules/cloud/vmware/vmware_guest_powerstate.py b/lib/ansible/modules/cloud/vmware/vmware_guest_powerstate.py index c134c29ad6a..f46c8c1f75c 100644 --- a/lib/ansible/modules/cloud/vmware/vmware_guest_powerstate.py +++ b/lib/ansible/modules/cloud/vmware/vmware_guest_powerstate.py @@ -263,7 +263,7 @@ def main(): vm.name, to_native(e.msg))) except vim.fault.DuplicateName as e: - module.exit_json(chanaged=False, details=to_native(e.msg)) + module.exit_json(changed=False, details=to_native(e.msg)) except vmodl.fault.InvalidArgument as e: module.fail_json(msg="Failed to create scheduled task %s as specifications " "given are invalid: %s" % (module.params.get('state'),