Added json.loads(body) to delete_attachment method

Getting error (before the fix):
TypeError: cannot convert dictionary update sequence element #0 to a
sequence

Change-Id: I90345fff4fc264d1a610d743ac192e83c1898f46
Signed-off-by: Yosi Ben Shimon <ybenshim@redhat.com>
This commit is contained in:
Yosi Ben Shimon
2023-08-10 11:05:16 +03:00
parent 4025fa3c8e
commit c49ed6f6c7
@@ -31,5 +31,6 @@ class AttachmentsClient(base_client.BaseClient):
"""Delete volume attachment."""
url = "attachments/%s" % (attachment_id)
resp, body = self.delete(url)
body = json.loads(body)
self.expected_success(200, resp.status)
return rest_client.ResponseBody(resp, body)