From a2ffd46412b225f93b801c029d48168b9d799191 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jason=20K=C3=B6lker?= Date: Wed, 29 Feb 2012 17:33:06 -0600 Subject: [PATCH] Add the tenant_id to the block data Change-Id: I72f9d3670bb5469eb09acd971dbc2d6acb9aabf7 --- melange/ipam/views.py | 1 + melange/tests/unit/test_ipam_views.py | 1 + 2 files changed, 2 insertions(+) diff --git a/melange/ipam/views.py b/melange/ipam/views.py index a8143693..483ecfce 100644 --- a/melange/ipam/views.py +++ b/melange/ipam/views.py @@ -53,6 +53,7 @@ class IpConfigurationView(object): 'netmask': block.netmask, 'dns1': block.dns1, 'dns2': block.dns2, + 'tenant_id': block.tenant_id, } def _route_data(self, route): diff --git a/melange/tests/unit/test_ipam_views.py b/melange/tests/unit/test_ipam_views.py index f2676e42..af17b9ed 100644 --- a/melange/tests/unit/test_ipam_views.py +++ b/melange/tests/unit/test_ipam_views.py @@ -82,6 +82,7 @@ def _ip_data(ip, block): 'dns1': block.dns1, 'dns2': block.dns2, 'ip_routes': [], + 'tenant_id': block.tenant_id, }, }