mirror of
https://github.com/apache/jclouds.git
synced 2025-02-16 15:08:28 +00:00
Issue 198: work around intermittent service bug by retrying when getVapp returns null on a vapp that exists in available resources
This commit is contained in:
parent
7def9eee7c
commit
4a880d1f47
@ -124,7 +124,7 @@ public class VCloudComputeServiceContextModule extends VCloudContextModule {
|
|||||||
@Named("NAMING_CONVENTION")
|
@Named("NAMING_CONVENTION")
|
||||||
@Singleton
|
@Singleton
|
||||||
String provideNamingConvention() {
|
String provideNamingConvention() {
|
||||||
return "%s%d";
|
return "%s-%d";
|
||||||
}
|
}
|
||||||
|
|
||||||
@Singleton
|
@Singleton
|
||||||
@ -281,7 +281,7 @@ public class VCloudComputeServiceContextModule extends VCloudContextModule {
|
|||||||
|
|
||||||
protected NodeMetadata getNodeMetadataByIdInVDC(String vDCId, String id) {
|
protected NodeMetadata getNodeMetadataByIdInVDC(String vDCId, String id) {
|
||||||
VApp vApp = client.getVApp(id);
|
VApp vApp = client.getVApp(id);
|
||||||
String tag = vApp.getName().replaceAll("[0-9]+", "");
|
String tag = vApp.getName().replaceAll("-[0-9]+", "");
|
||||||
return new NodeMetadataImpl(vApp.getId(), vApp.getName(), vDCId, vApp.getLocation(),
|
return new NodeMetadataImpl(vApp.getId(), vApp.getName(), vDCId, vApp.getLocation(),
|
||||||
ImmutableMap.<String, String> of(), tag, vAppStatusToNodeState.get(vApp
|
ImmutableMap.<String, String> of(), tag, vAppStatusToNodeState.get(vApp
|
||||||
.getStatus()), computeClient.getPublicAddresses(id), computeClient
|
.getStatus()), computeClient.getPublicAddresses(id), computeClient
|
||||||
|
Loading…
x
Reference in New Issue
Block a user