NSX|V: Fix update section header

the etag field sometimes has extra "" which should be removed before
using it in the headers.

Change-Id: I3e252367fb03a2afdc8bb1128f3c7ce648902694
This commit is contained in:
Adit Sarfaty 2019-02-04 13:43:26 +02:00
parent e3613af0a1
commit 1cf26fb590

View File

@ -720,6 +720,8 @@ class Vcns(object):
h, c = self.do_request(HTTP_GET, section_uri, format='xml',
decode=False)
etag = h['etag']
# remove extra "" from the etag
etag = etag.replace('"', '')
headers = {'If-Match': etag}
return headers