From ef1e1d9b7a1fd4140518318ead8b7174a6a434ab Mon Sep 17 00:00:00 2001 From: Gabriel Hurley Date: Fri, 5 Oct 2012 12:05:08 -0700 Subject: [PATCH] Corrects an error in the EC2 form choices. Fixes bug 1062490. Change-Id: I1b8bd0fa362c3ddb67a7d4127211adf969b8c48c --- horizon/dashboards/settings/ec2/forms.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/horizon/dashboards/settings/ec2/forms.py b/horizon/dashboards/settings/ec2/forms.py index 338e321083..97fcbc03b0 100644 --- a/horizon/dashboards/settings/ec2/forms.py +++ b/horizon/dashboards/settings/ec2/forms.py @@ -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