From 1e63cec18a6bfb5a65a2b474d76db38f975f6c39 Mon Sep 17 00:00:00 2001 From: Boden R Date: Fri, 12 Feb 2016 12:13:34 -0700 Subject: [PATCH] NSX v3 devstack cleanup invalid call Change devstack tools for nsxv3_cleanup to reference proper jsonutils method. Change-Id: Ibf7cf1d0acd0ad2caa2bb8493a58f4cd5386b683 --- devstack/tools/nsxv3_cleanup.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/devstack/tools/nsxv3_cleanup.py b/devstack/tools/nsxv3_cleanup.py index 42d55cda5e..197984f193 100755 --- a/devstack/tools/nsxv3_cleanup.py +++ b/devstack/tools/nsxv3_cleanup.py @@ -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):