From cc339bbe98cd22ab554bddeb95d500a2a21e9061 Mon Sep 17 00:00:00 2001 From: nishiki Date: Mon, 17 Oct 2016 18:35:30 +0200 Subject: [PATCH] minor fix id --- lib/mpw/mpw.rb | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/lib/mpw/mpw.rb b/lib/mpw/mpw.rb index 1572923..f1ae35e 100644 --- a/lib/mpw/mpw.rb +++ b/lib/mpw/mpw.rb @@ -110,16 +110,16 @@ class MPW @data.each do |item| next if item.empty? - data.merge!("#{item.user}@#{item.host}" => {'id' => item.id, - 'group' => item.group, - 'host' => item.host, - 'protocol' => item.protocol, - 'user' => item.user, - 'port' => item.port, - 'comment' => item.comment, - 'last_edit' => item.last_edit, - 'created' => item.created, - } + data.merge!(item.id => { 'id' => item.id, + 'group' => item.group, + 'host' => item.host, + 'protocol' => item.protocol, + 'user' => item.user, + 'port' => item.port, + 'comment' => item.comment, + 'last_edit' => item.last_edit, + 'created' => item.created, + } ) end