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:
parent
e3613af0a1
commit
1cf26fb590
@ -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
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user