lib/kontena/machine/digital_ocean/node_destroyer.rb in kontena-plugin-digitalocean-0.2.3 vs lib/kontena/machine/digital_ocean/node_destroyer.rb in kontena-plugin-digitalocean-0.2.4
- old
+ new
@@ -27,10 +27,10 @@
abort "Cannot find droplet #{name.colorize(:cyan)} in DigitalOcean"
end
node = api_client.get("grids/#{grid['id']}/nodes")['nodes'].find{|n| n['name'] == name}
if node
spinner "Removing node #{name.colorize(:cyan)} from grid #{grid['name'].colorize(:cyan)} " do
- api_client.delete("grids/#{grid['id']}/nodes/#{name}")
+ api_client.delete("nodes/#{grid['id']}/#{name}")
end
end
end
end
end