Corrects an error in the EC2 form choices.

Fixes bug 1062490.

Change-Id: I1b8bd0fa362c3ddb67a7d4127211adf969b8c48c
This commit is contained in:
Gabriel Hurley 2012-10-05 12:05:08 -07:00
parent a058bfc1d6
commit ef1e1d9b7a

View File

@ -48,7 +48,7 @@ class DownloadX509Credentials(forms.SelfHandlingForm):
if tenant.enabled:
tenant_choices.append((tenant.id, tenant.name))
if not tenant_choices:
self.fields['tenant'].choices = ('', 'No Available Tenants')
self.fields['tenant'].choices = [('', 'No Available Tenants')]
else:
self.fields['tenant'].choices = tenant_choices