Commit 8d499c3d authored by Remi Oudin's avatar Remi Oudin

[machine/views.py] Réparation de l'ajout de fingerprint ssh via l'intranet

parent 8bbe8afe
......@@ -229,9 +229,9 @@ def edit(request, mid=None):
)
ssh_fpr = form.cleaned_data['ssh_fpr']
if ssh_fpr:
machine['sshFingerprint'].append(ssh_fpr)
machine.machine['sshFingerprint'].append(request.POST['ssh_fpr'])
machine.machine.validate_changes()
machine.machine.save()
machine.machine.history_gen()
machine.save()
messages.success(request, _(u'Les changements ont bien été enregistrés.'))
return redirect('machines:detail', mid=str(machine['mid']))
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment