From a14392fab01dc7032c7f2b838afd966459a65b6f Mon Sep 17 00:00:00 2001 From: Zach Biles Date: Thu, 30 Sep 2021 09:24:48 -0500 Subject: [PATCH] fix structure xcc_redfish_command (#3479) * adhere to proper task structure * add changelog fragment * return code formatting to original * remove unnecessary fragment --- .../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