users: Update the SSH set key error message

In a following pull request, we are expected to solve the cache timing
issue.  So, show a generic error message instead of one that suggests a
timing problem.
This commit is contained in:
Sunil Mohan Adapa committed 2016-08-23 21:37:51 +05:30
1 parent d2950d9c5f
commit 5f94d6489f
1 file changed
+1 -4
+1 -4
View File
@@ -212,10 +212,7 @@ class UserUpdateForm(ValidNewUsernameCheckMixin, forms.ModelForm):
'ssh', ['set-keys', '--username', user.get_username(),
'--keys', self.cleaned_data['ssh_keys'].strip()])
except ActionError:
messages.error(
self.request,
_('Unable to set SSH keys. Please wait a minute and then '
'try again.'))
messages.error(self.request, _('Unable to set SSH keys.'))
return user