02/14/2022, 8:27 PM
Hi, I am deploying virtual machine using go automation api . While testing and deploying machine there was panic and rerunning the program I am Now getting following error when I try to either delete stack or create new machine
error: could not create stack: the stack is currently locked by 1 lock(s). Either wait for the other process(es) to end or manually delete the lock file(s).
the only Way I found was to go and delete the .json lock file manually from the stack folder . Just wondering how I can manage and check if the stack is lock using Automation api and unlock the locked stack using automation api , instead of the deleting the stack file manually .