1
0
mirror of https://github.com/OpenNebula/one.git synced 2025-03-22 18:50:08 +03:00

F #4302: Fix error creating section in NSX-V (#4881)

Co-authored-by: mouyaq <amoya@opennebula.io>
This commit is contained in:
Angel Luis Moya Gonzalez 2020-06-04 15:57:23 +02:00 committed by GitHub
parent 7332ae884e
commit 2275ed8002
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -106,7 +106,8 @@ module NSXDriver
stateless=\"false\" tcpStrict=\"true\" useSid=\"false\">\
</section>"
section = @nsx_client.post(@url_sections, section_spec)
section = Nokogiri::XML @nsx_client
.post(@url_sections, section_spec)
section_id = section.xpath('//section/@id').text
result = section_by_id(section_id)
raise 'Section was not created in DFW' unless result