From 5f94d6489f17adcc5732a4de5a07a50a116de354 Mon Sep 17 00:00:00 2001 From: Sunil Mohan Adapa Date: Tue, 23 Aug 2016 21:35:22 +0530 Subject: [PATCH] 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. --- plinth/modules/users/forms.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/plinth/modules/users/forms.py b/plinth/modules/users/forms.py index 686d3f928..ce3277e79 100644 --- a/plinth/modules/users/forms.py +++ b/plinth/modules/users/forms.py @@ -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