fangli / rancherssh

Native SSH Client for Rancher Containers, provided a powerful native terminal to manage your docker containers
Apache License 2.0
101 stars 12 forks source link

Update to work with API v3 #9

Open MaxDiOrio opened 6 years ago

MaxDiOrio commented 6 years ago

Get the following error when attempting to connect. Guessing because the API is now at v3.

panic: interface conversion: interface {} is nil, not []interface {}

goroutine 1 [running]: main.(RancherAPI).containerUrl(0xc420165f48, 0x7ffeefbffa93, 0xc, 0x25, 0x0) /private/tmp/rancherssh-20180815-46308-1kyckiw/rancherssh-1.1.3/main.go:189 +0x214c main.(RancherAPI).GetContainerConn(0xc420165f48, 0x7ffeefbffa93, 0xc, 0x1008d7d) /private/tmp/rancherssh-20180815-46308-1kyckiw/rancherssh-1.1.3/main.go:249 +0x10f main.main() /private/tmp/rancherssh-20180815-46308-1kyckiw/rancherssh-1.1.3/main.go:303 +0x94