Permalink
Browse files

Fixing floating ip allocation.

Change-Id: Ie229923384fdaf59e5141cf781bfb6f8dc8f30fb
  • Loading branch information...
1 parent 4a4c983 commit e7d7643e3ba83a1c43c689406c5eab77539c67a5 jakedahn committed Dec 15, 2011
Showing with 2 additions and 3 deletions.
  1. +2 −3 horizon/horizon/dashboards/nova/access_and_security/views.py
View
5 horizon/horizon/dashboards/nova/access_and_security/views.py
@@ -73,8 +73,6 @@ def index(request):
LOG.exception("ClientException in floating ip index")
messages.error(request,
_('Error fetching floating ips: %s') % e.message)
- allocate_form = FloatingIpAllocate(initial={
- 'tenant_id': request.user.tenant_id})
try:
keypairs = api.keypair_list(request)
except novaclient_exceptions.ClientException, e:
@@ -86,9 +84,10 @@ def index(request):
'floating_ips': floating_ips,
'security_groups': security_groups,
'keypair_delete_form': DeleteKeypair(),
- 'allocate_form': FloatingIpAllocate(),
'disassociate_form': FloatingIpDisassociate(),
'release_form': ReleaseFloatingIp(),
+ 'allocate_form': FloatingIpAllocate(initial={
+ 'tenant_id': request.user.tenant_id}),
'sec_group_create_form': CreateGroup(
initial={'tenant_id': tenant_id}),
'sec_group_delete_form': DeleteGroup.maybe_handle(request,

0 comments on commit e7d7643

Please sign in to comment.