fixing the allocate floating ip method

This commit is contained in:
Jake Dahn 2011-09-06 11:52:56 -07:00
parent 5915d2b35c
commit a5ecd8bbc7
2 changed files with 2 additions and 2 deletions

View File

@ -388,7 +388,7 @@ def tenant_floating_ip_get(request, floating_ip_id):
return novaclient(request).floating_ips.get(floating_ip_id)
def tenant_floating_ip_associate(request, floating_ip_id, instance_id):
def tenant_floating_ip_allocate(request):
"""
Allocates a floating ip to tenant.
"""

View File

@ -113,7 +113,7 @@ class FloatingIpAllocate(forms.SelfHandlingForm):
def handle(self, request, data):
try:
ip = api.tenant_floating_ip_attach(request, data['tenant_id'])
ip = api.tenant_floating_ip_allocate(request)
LOG.info('Allocating Floating IP "%s" to tenant "%s"'
% (ip.floating_ip, data['tenant_id']))