1
0
mirror of https://github.com/OpenNebula/one.git synced 2025-01-26 10:03:37 +03:00

F #3440: Fix error on NSX-V creation LS (#3933)

This commit is contained in:
Angel Luis Moya Gonzalez 2019-11-12 10:25:16 +01:00 committed by Tino Vázquez
parent 09adfe97e8
commit d4495e5ec0

View File

@ -83,9 +83,9 @@ module NSXDriver
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: " \