lib/kontena/cli/nodes/ssh_command.rb in kontena-cli-1.0.0.rc2 vs lib/kontena/cli/nodes/ssh_command.rb in kontena-cli-1.0.0
- old
+ new
@@ -12,10 +12,10 @@
def execute
require_api_url
require_current_grid
token = require_token
- node = client(token).get("grids/#{current_grid}/nodes/#{node_id}")
+ node = client(token).get("nodes/#{current_grid}/#{node_id}")
cmd = ['ssh']
cmd << "-i #{identity_file}" if identity_file
if internal_ip?
ip = "10.81.0.#{node['node_number']}"
elsif private_ip?