1
0
Fork 0
mirror of https://github.com/nishiki/manage-password.git synced 2024-11-27 07:33:05 +00:00

fix new syntax for csv

This commit is contained in:
nishiki 2014-08-31 12:39:40 +02:00
parent 33f92d9aae
commit ce05c53c20

View file

@ -16,11 +16,11 @@ class CliSSH < Cli
if result.length > 0 if result.length > 0
result.each do |r| result.each do |r|
server = @server.nil? ? r[MPW::MPW::SERVER] : @server server = @server.nil? ? r[:host] : @server
port = @port.nil? ? r[MPW::MPW::PORT] : @port port = @port.nil? ? r[:port] : @port
login = @login.nil? ? r[MPW::MPW::LOGIN] : @login login = @login.nil? ? r[:login] : @login
passwd = r[MPW::MPW::PASSWORD] passwd = r[:password]
if port.nil? || port.empty? if port.nil? || port.empty?
port = 22 port = 22