Skip to content

Commit

Permalink
F #3440: Fix error on NSX-V creation LS (#3933)
Browse files Browse the repository at this point in the history
  • Loading branch information
Angel Luis Moya Gonzalez authored and Tino Vázquez committed Nov 12, 2019
1 parent 09adfe9 commit d4495e5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/vmm_mad/remotes/lib/nsx_driver/nsxv_client.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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: " \
Expand Down

0 comments on commit d4495e5

Please sign in to comment.