Get host objects in hostgroup - failing for hosts added via the API

Thank you for your reply. Do you know at what stage I should be getting those warnings? I upgraded my local Vagrant instance to 2.11.3 and reran the first example from the console and I’m not seeing errors in the logs. I’ve been attempting to build upon the example given here: DSL: Get host objects in hostgroup with get_objects() and Array#filter (deep-dive into lambda expressions, functions and closures)