From 2275ed80028dc2454b90aaecd4f5fbb40c8a1e3a Mon Sep 17 00:00:00 2001 From: Angel Luis Moya Gonzalez Date: Thu, 4 Jun 2020 15:57:23 +0200 Subject: [PATCH] F #4302: Fix error creating section in NSX-V (#4881) Co-authored-by: mouyaq --- src/vmm_mad/remotes/lib/nsx_driver/nsxv_dfw.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/vmm_mad/remotes/lib/nsx_driver/nsxv_dfw.rb b/src/vmm_mad/remotes/lib/nsx_driver/nsxv_dfw.rb index 8700c35f2b..cbb329a644 100644 --- a/src/vmm_mad/remotes/lib/nsx_driver/nsxv_dfw.rb +++ b/src/vmm_mad/remotes/lib/nsx_driver/nsxv_dfw.rb @@ -106,7 +106,8 @@ module NSXDriver stateless=\"false\" tcpStrict=\"true\" useSid=\"false\">\ " - 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