I found the inventory script documentation (on how to create your own) to be severely lacking.. :( i eventually gave up on trying it. I hope you find an answer, but I just wanted to vent my frustration with the docs here haha
On Thu, Jan 31, 2019 at 8:00 AM Josh R <josh.robin...@gmail.com> wrote: > I'm writing an inventory plugin that gets a list of online machines from > an active directory OU structure and dynamically creates groups and host > details from it. > > However, as I write it - I'd like to be able to test the incremental > changes by just calling parser() directly. > > Does anyone have an example call to parser() to test plugins? For example > - my definition is : > > def parse(self, inventory, loader, path, cache=True): > > I temporarily removed all the required variables in order to call it, but > I'm now at a point I need to test the inventory calls. > > Also. any guidance on testing of plugins would be appreciated. > > Thanks, > > Josh > > > -- > You received this message because you are subscribed to the Google Groups > "Ansible Development" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to ansible-devel+unsubscr...@googlegroups.com. > For more options, visit https://groups.google.com/d/optout. > -- You received this message because you are subscribed to the Google Groups "Ansible Development" group. To unsubscribe from this group and stop receiving emails from it, send an email to ansible-devel+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.