From 9de059b44d6c7ff2be5393263cb5c289cb96379f Mon Sep 17 00:00:00 2001 From: "patchback[bot]" <45432694+patchback[bot]@users.noreply.github.com> Date: Thu, 30 Sep 2021 17:24:44 +0200 Subject: [PATCH] fix structure xcc_redfish_command (#3479) (#3482) * 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 1dbf4ad0b6..f082f6cd5c 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