From 94cd9b03735abccf0080cfd6a57e1685c8dbe319 Mon Sep 17 00:00:00 2001 From: Dan Wendlandt Date: Fri, 29 Jul 2011 22:20:52 -0700 Subject: [PATCH] fix bug 817826 and similar error in batch_config.py --- quantum/cli.py | 4 ++-- tools/batch_config.py | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/quantum/cli.py b/quantum/cli.py index 02bafbd09d..0f6a0c27e0 100644 --- a/quantum/cli.py +++ b/quantum/cli.py @@ -114,7 +114,7 @@ def create_net(manager, *args): def api_create_net(client, *args): tid, name = args - data = {'network': {'network-name': '%s' % name}} + data = {'network': {'net-name': '%s' % name}} body = Serializer().serialize(data, CONTENT_TYPE) res = client.do_request(tid, 'POST', "/networks." + FORMAT, body=body) rd = json.loads(res.read()) @@ -185,7 +185,7 @@ def rename_net(manager, *args): def api_rename_net(client, *args): tid, nid, name = args - data = {'network': {'network-name': '%s' % name}} + data = {'network': {'net-name': '%s' % name}} body = Serializer().serialize(data, CONTENT_TYPE) res = client.do_request(tid, 'PUT', "/networks/%s.%s" % (nid, FORMAT), body=body) diff --git a/tools/batch_config.py b/tools/batch_config.py index 63f4a5223d..8415513d01 100644 --- a/tools/batch_config.py +++ b/tools/batch_config.py @@ -84,7 +84,7 @@ def delete_all_nets(client, tenant_id): def create_net_with_attachments(net_name, iface_ids): - data = {'network': {'network-name': '%s' % net_name}} + data = {'network': {'net-name': '%s' % net_name}} body = Serializer().serialize(data, CONTENT_TYPE) res = client.do_request(tenant_id, 'POST', "/networks." + FORMAT, body=body)