mirror of https://github.com/apache/jclouds.git
fixed gogrid deletebyname to by id
This commit is contained in:
parent
0f30c81466
commit
861a7ba854
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue