From 26b4bf0f4f4840f69d134b695977b114066e87e5 Mon Sep 17 00:00:00 2001 From: Dan Wendlandt Date: Tue, 9 Aug 2011 01:03:32 -0700 Subject: [PATCH] force batch_config.py to use json, as XML has issues (see bug: 798262) --- tools/batch_config.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/batch_config.py b/tools/batch_config.py index 705f46fbc1..f9684c82af 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)