NSX v3 devstack cleanup invalid call

Change devstack tools for nsxv3_cleanup to reference proper
jsonutils method.

Change-Id: Ibf7cf1d0acd0ad2caa2bb8493a58f4cd5386b683
This commit is contained in:
Boden R 2016-02-12 12:13:34 -07:00
parent 11d9740ca3
commit 1e63cec18a

View File

@ -14,10 +14,12 @@
# under the License.
import base64
import jsonutils
import optparse
import requests
from jsonutils import json
requests.packages.urllib3.disable_warnings()
@ -103,7 +105,7 @@ class NSXClient(object):
"""
self.__set_url(endpoint=endpoint)
response = requests.put(self.url, headers=self.headers,
verify=self.verify, data=jsonutils.dumps(body))
verify=self.verify, data=json.write(body))
return response
def delete(self, endpoint=None, params=None):
@ -122,7 +124,7 @@ class NSXClient(object):
self.__set_url(endpoint=endpoint)
response = requests.post(self.url, headers=self.headers,
verify=self.verify,
data=jsonutils.dumps(body))
data=json.write(body))
return response
def get_transport_zones(self):