redfish: managers: fix extract dump id from correct dump location URI

Symptom:
Create User Initiated BMC Dump keyword return incorrect field

Root cause:
"Create User Initiated BMC Dump" HttpHeaders of Payload didn't return correct location
then cause dump id cannot get properly

Solution:
Extract dump id from correct dump location URI

Tested:
robot test PASS for "Test Bmc Dumps" from redfish/managers/test_bmc_dumps.robot

Signed-off-by: Tim Lee <timlee660101@gmail.com>
Change-Id: I97b0e70651c6f522dcfe268186cb459bb0ef6509
diff --git a/redfish/managers/test_bmc_dumps.robot b/redfish/managers/test_bmc_dumps.robot
index c6290b9..469dcf5 100644
--- a/redfish/managers/test_bmc_dumps.robot
+++ b/redfish/managers/test_bmc_dumps.robot
@@ -204,14 +204,14 @@
     #      "Connection: Keep-Alive",
     #      "Accept: */*",
     #      "Content-Length: 33",
-    #      "Location: /redfish/v1/Managers/bmc/LogServices/Dump/Entries/2/"]
+    #      "Location: /redfish/v1/Managers/bmc/LogServices/Dump/Entries/2"]
     #    ],
     #    "HttpOperation": "POST",
     #    "JsonBody": "{\"DiagnosticDataType\":\"Manager\"}",
     #     "TargetUri": "/redfish/v1/Managers/bmc/LogServices/Dump/Actions/LogService.CollectDiagnosticData"
     # }
 
-    [Return]  ${task_dict["Payload"]["HttpHeaders"][-1].split("/")[-2]}
+    [Return]  ${task_dict["Payload"]["HttpHeaders"][-1].split("/")[-1]}
 
 
 Get BMC Dump Entries