From: Dan Wendlandt Date: Tue, 9 Aug 2011 08:03:32 +0000 (-0700) Subject: force batch_config.py to use json, as XML has issues (see bug: 798262) X-Git-Url: https://review.fuel-infra.org/gitweb?a=commitdiff_plain;h=26b4bf0f4f4840f69d134b695977b114066e87e5;p=openstack-build%2Fneutron-build.git force batch_config.py to use json, as XML has issues (see bug: 798262) --- diff --git a/tools/batch_config.py b/tools/batch_config.py index 705f46fbc..f9684c82a 100644 --- a/tools/batch_config.py +++ b/tools/batch_config.py @@ -30,7 +30,6 @@ def delete_all_nets(client): res = client.list_networks() for n in res["networks"]: nid = n["id"] - pres = client.list_ports(nid) for port in pres["ports"]: pid = port['id'] @@ -102,7 +101,8 @@ if __name__ == "__main__": print "nets: %s" % str(nets) - client = Client(options.host, options.port, options.ssl, tenant=tenant_id) + client = Client(options.host, options.port, options.ssl, + format='json', tenant=tenant_id) if options.delete: delete_all_nets(client)