From ce05c53c20b146d8de29d5a125de19da388b90b3 Mon Sep 17 00:00:00 2001 From: nishiki Date: Sun, 31 Aug 2014 12:39:40 +0200 Subject: [PATCH] fix new syntax for csv --- MPW/UI/CliSSH.rb | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/MPW/UI/CliSSH.rb b/MPW/UI/CliSSH.rb index 9292ca8..a5c0eb1 100644 --- a/MPW/UI/CliSSH.rb +++ b/MPW/UI/CliSSH.rb @@ -16,11 +16,11 @@ class CliSSH < Cli if result.length > 0 result.each do |r| - server = @server.nil? ? r[MPW::MPW::SERVER] : @server - port = @port.nil? ? r[MPW::MPW::PORT] : @port - login = @login.nil? ? r[MPW::MPW::LOGIN] : @login + server = @server.nil? ? r[:host] : @server + port = @port.nil? ? r[:port] : @port + login = @login.nil? ? r[:login] : @login - passwd = r[MPW::MPW::PASSWORD] + passwd = r[:password] if port.nil? || port.empty? port = 22