To use this function add it to the class library file named vCloudService.ts
GitHub Repository: https://github.com/SimonSparksUK/Orchestrator
Filename: vCloudService.ts
Description: Orchestrator Function to find and removes all Orchestrator locks
Function: RemoveAllOrchestratorLocks
publicRemoveAllOrchestratorLocks():void{
letarrLock:string[]=LockingSystem.retrieveAll();
arrLock.forEach((strLock:string):void=>{
letarrLock:string[]=strLock.split(",");
this.objLogger.info("strLock ="+arrLock[0]+", User ="+arrLock[1]);
try{
LockingSystem.unlock(arrLock[0],"vcdadmin");
}
catch (strException){
this.objLogger.info("strException ="+strException);
}
});
}Discover more from Cloud Build Tools
Subscribe to get the latest posts sent to your email.
