Quantcast
Channel: VMware Communities : All Content - vRealize Automation Tools
Viewing all articles
Browse latest Browse all 9859

Refresh Orchestrator's view of a vRA Catalog Resource?

$
0
0

I have an event subscription that fires upon CHANGE_LEASE completion, that currently just displays some information about the parent deployment. It always shows the old lease end time, not the new one that I set it to. I've tried getting the entity again, invalidating the entity, and even sleeping for 5 seconds (gross), but it never displays the new lease end time. Is there a way to refresh Orchestrator's  information about this catalog resource?

 

This doesn't work:

 

if (actualDeploymentId != null && actualDeploymentId != undefined && actualDeploymentId != "") {    System.debug("actualDeploymentId: " + actualDeploymentId);    parentResource = vCACCAFEEntitiesFinder.getCatalogResource(host, actualDeploymentId);    vCACCAFEEntitiesFinder.invalidateEntity(parentResource);    System.sleep(5000);    parentResource = vCACCAFEEntitiesFinder.getCatalogResource(host, actualDeploymentId);    System.debug("Lease end: " + parentResource.lease.getEnd());
}

Viewing all articles
Browse latest Browse all 9859

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>