diff --git a/src/vmm_mad/remotes/lib/nsx_driver/nsxv_client.rb b/src/vmm_mad/remotes/lib/nsx_driver/nsxv_client.rb index 8348e1e25b0..fd8f096f490 100644 --- a/src/vmm_mad/remotes/lib/nsx_driver/nsxv_client.rb +++ b/src/vmm_mad/remotes/lib/nsx_driver/nsxv_client.rb @@ -83,9 +83,9 @@ def post(url, ls_data) https.request(request) end - response_json = JSON.parse(response.body) # If response is different as expected raise the message unless check_response(response, 201) + response_json = JSON.parse(response.body) nsx_error = "\nNSX error code: " \ "#{response_json['errorCode']}, " \ "\nNSX error details: " \