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:
parent
33f92d9aae
commit
ce05c53c20
1 changed files with 4 additions and 4 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue