fixed gogrid deletebyname to by id

This commit is contained in:
Adrian Cole 2010-05-21 16:38:06 -07:00
parent 0f30c81466
commit 861a7ba854
1 changed files with 1 additions and 1 deletions

View File

@ -209,7 +209,7 @@ public class GoGridComputeServiceContextModule extends GoGridContextModule {
public boolean execute(String id) {
Server server = Iterables.getOnlyElement(client.getServerServices().getServersById(
new Long(id)));
client.getServerServices().deleteByName(server.getName());
client.getServerServices().deleteById(server.getId());
return serverLatestJobCompleted.apply(server);
}