04-11-2013 06:12 PM
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)
Solved! Go to Solution.
04-12-2013 09:25 AM
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
04-12-2013 09:51 AM
Ah, looks like you can't.
You can try and do this thru spin instead:
import sys sys.path.append('/opt/opsware/pylibs2') 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. :)