]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commitdiff
force batch_config.py to use json, as XML has issues (see bug: 798262)
authorDan Wendlandt <dan@nicira.com>
Tue, 9 Aug 2011 08:03:32 +0000 (01:03 -0700)
committerDan Wendlandt <dan@nicira.com>
Tue, 9 Aug 2011 08:03:32 +0000 (01:03 -0700)
tools/batch_config.py

index 705f46fbc11f0d8eb62bf0c0c2fea260c211f264..f9684c82afba313ef528f54e53ae660cbd4513de 100644 (file)
@@ -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)