JCLOUDS-1249: Fix OpenStack server rollback

This commit is contained in:
Ignasi Barrera 2017-02-28 12:13:26 +01:00
parent 049fe5c6e4
commit 459d437af2
1 changed files with 1 additions and 1 deletions

View File

@ -149,7 +149,7 @@ public class NovaComputeServiceAdapter implements
}, 30 * 60, 1, SECONDS).apply(lightweightServer.getId())) {
final String message = format("Server %s was not created within %sms so it will be destroyed.", name, "30 * 60");
logger.warn(message);
destroyNode(lightweightServer.getId());
destroyNode(RegionAndId.fromRegionAndId(regionId, lightweightServer.getId()).slashEncode());
throw new IllegalStateException(message);
}
logger.trace("<< server(%s)", lightweightServer.getId());