Skip to content

Commit

Permalink
Added urlquote call around keypair name in delete form. Fixed bug 898…
Browse files Browse the repository at this point in the history
…803.

Change-Id: Ie39c0c9136a2b02247a4e67a16d91ef09c2e5ddc
  • Loading branch information
gabrielhurley committed Dec 1, 2011
1 parent 058c284 commit eb89672
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion horizon/horizon/dashboards/nova/keypairs/forms.py
Expand Up @@ -24,6 +24,7 @@
from django import shortcuts
from django.contrib import messages
from django.core import validators
from django.utils.http import urlquote
from django.utils.translation import ugettext as _
from novaclient import exceptions as novaclient_exceptions

Expand All @@ -40,7 +41,7 @@ class DeleteKeypair(forms.SelfHandlingForm):
def handle(self, request, data):
try:
LOG.info('Deleting keypair "%s"' % data['keypair_id'])
api.keypair_delete(request, data['keypair_id'])
api.keypair_delete(request, urlquote(data['keypair_id']))
messages.info(request, _('Successfully deleted keypair: %s')
% data['keypair_id'])
except novaclient_exceptions.ClientException, e:
Expand Down

0 comments on commit eb89672

Please sign in to comment.