Hi guys!
I found that method to refresh the ems is not synchronous (OpenStack for my case). I need to wait some time before I get the updated data. This is true for built-in method:
/System/event_handlers/event_action_refresh?target=ems
as well as for the method of the corresponding object (ems.refresh). Now I use the following snippet to resolve this issue:
ems = $evm.root[‘event_stream’].ext_management_system
ems.refresh
sleep(20)
but as you know it is not correct. Maybe there’s some way of pulling for this task ?