Corrects an error in the EC2 form choices.
Fixes bug 1062490. Change-Id: I1b8bd0fa362c3ddb67a7d4127211adf969b8c48c
This commit is contained in:
parent
a058bfc1d6
commit
ef1e1d9b7a
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user