I have been trying to find out how to allow recert for certain agents through the twist. I thouhgt I could use the Twist, but apparently not.
I have tried to use this code, even though the AgentCryptoVO reports as allowRecert=true. After inspecting the parent Server object, that is not the case.
(custom function called find_server_vos_by_filter ; returns array of server_vos)
Go to Solution.
To update the Truth with the new VO, you have to assign the AgentCryptoInfoVO back to the ServerVO, then call the ServerService.update method with the ServerRef and ServerVO
How can I assign the crypto vo to the servervo. I don't see that as a function or attribute for ServerVO.
Ah, looks like you can't.
You can try and do this thru spin instead:
from coglib import spinwrapper
spin = spinwrapper.SpinWrapper("http://127.0.0.1:1007")
server_mid = 123456
spin.Device.update(id = server_mid, allow_recert=1)
You can set it to 1 or 0, not sure which means which in this case, but assuming 1 is True. :)