From c9c535178f68896dfe7cb15b6b8e1a35351bcb33 Mon Sep 17 00:00:00 2001 From: "patchback[bot]" <45432694+patchback[bot]@users.noreply.github.com> Date: Thu, 30 Sep 2021 17:24:41 +0200 Subject: [PATCH] fix structure xcc_redfish_command (#3479) (#3481) * adhere to proper task structure * add changelog fragment * return code formatting to original * remove unnecessary fragment (cherry picked from commit a14392fab01dc7032c7f2b838afd966459a65b6f) Co-authored-by: Zach Biles --- .../remote_management/lenovoxcc/xcc_redfish_command.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/plugins/modules/remote_management/lenovoxcc/xcc_redfish_command.py b/plugins/modules/remote_management/lenovoxcc/xcc_redfish_command.py index d8966c6d64..61ed42e9d6 100644 --- a/plugins/modules/remote_management/lenovoxcc/xcc_redfish_command.py +++ b/plugins/modules/remote_management/lenovoxcc/xcc_redfish_command.py @@ -168,7 +168,9 @@ EXAMPLES = ''' password: "{{ password }}" resource_uri: "/redfish/v1/Managers/1/NetworkProtocol/Oem/Lenovo/DNS" register: result - - ansible.builtin.debug: + + - name: Print fetched information + ansible.builtin.debug: msg: "{{ result.redfish_facts.data }}" - name: Get Lenovo FoD key collection resource via GetCollectionResource command @@ -180,7 +182,9 @@ EXAMPLES = ''' password: "{{ password }}" resource_uri: "/redfish/v1/Managers/1/Oem/Lenovo/FoD/Keys" register: result - - ansible.builtin.debug: + + - name: Print fetched information + ansible.builtin.debug: msg: "{{ result.redfish_facts.data_list }}" - name: Update ComputeSystem property AssetTag via PatchResource command