lib/sakura2ssh/cli.rb in sakura2ssh-0.0.1 vs lib/sakura2ssh/cli.rb in sakura2ssh-0.0.2

- old
+ new

@@ -54,10 +54,10 @@ host = server['Name'] host_suffix = ".#{server['Zone']['Name']}" comment = server['Zone']['Description'] + " " + server['Zone']['Region']['Name'] server = server['Interfaces'].first['UserIPAddress'] # FIXME: Error Handling #.map{|net| net['UserIPAddress']} if server == nil - server = "" + next # FIXME: end # Display result += <<-"EOS" # .split("\n").map{|a|a.lstrip}.join('') Host #{host} #{host}#{host_suffix} HostName #{server}