I was pretty excited about being able to raise automation requests via $evm.execute instead of having to use the API - this means I can avoid making users enter the passwords for each request, and really is cool.
However, as I’m working though a new automation method using this way of doing things, I’ve run into this little problem…
When, in the automation_task, I try to locate anything in the vmdb, such as doing the old " vm = $evm.vmdb(‘vm’).find_by_guid($evm.root[‘guid’]) " trick - no matter how or what I search, I get nil.
Is this a bug? Or is it by design, and I’m just not smart enough to figure out how to work around it?