NSX|V3: use oslo_serialization instaed of json import
TrivialFix Change-Id: I38b88c687a883e260a976855f7fbf21fb0dc5ee6
This commit is contained in:
parent
2fabb839a6
commit
c7b529e775
@ -17,7 +17,7 @@ import base64
|
||||
import optparse
|
||||
import requests
|
||||
|
||||
from jsonutils import json
|
||||
from oslo_serialization import jsonutils
|
||||
|
||||
|
||||
requests.packages.urllib3.disable_warnings()
|
||||
@ -105,7 +105,7 @@ class NSXClient(object):
|
||||
"""
|
||||
self.__set_url(endpoint=endpoint)
|
||||
response = requests.put(self.url, headers=self.headers,
|
||||
verify=self.verify, data=json.write(body))
|
||||
verify=self.verify, data=jsonutils.dumps(body))
|
||||
return response
|
||||
|
||||
def delete(self, endpoint=None, params=None):
|
||||
@ -124,7 +124,7 @@ class NSXClient(object):
|
||||
self.__set_url(endpoint=endpoint)
|
||||
response = requests.post(self.url, headers=self.headers,
|
||||
verify=self.verify,
|
||||
data=json.write(body))
|
||||
data=jsonutils.dumps(body))
|
||||
return response
|
||||
|
||||
def get_transport_zones(self):
|
||||
|
Loading…
Reference in New Issue
Block a user