SvcLogicResource.QueryStatus response =
aaiClient.query(resourceType, false, null, query, prefix, null, resourceContext);
log.info("AAIResponse: " + response.toString());
- if (!SvcLogicResource.QueryStatus.SUCCESS.equals(response)) {
- throw new AaiServiceInternalException("Error Retrieving " + resourceType + " from A&AI");
+ if (resourceType==null || !resourceType.equals("cloud-region")) {
+ if (!SvcLogicResource.QueryStatus.SUCCESS.equals(response)) {
+ throw new AaiServiceInternalException("Error Retrieving " + resourceType + " from A&AI");
+ }
}
return resourceContext;
}
String resourceType = "cloud-region";
SvcLogicContext urlCtx = readResource(resourceKey, queryPrefix, resourceType);
log.info("IdentityUrl: "+urlCtx.getAttribute("urlInfo.identity-url"));
+ log.info("Prefix for getIdentityUrl: "+prefix+"cloud-region.identity-url");
ctx.setAttribute(prefix+"cloud-region.identity-url", urlCtx.getAttribute("urlInfo.identity-url"));
}