Setup the service-now plugin with good results except that cannot seem to get the keyed groups to pickup from sn_u_business_unit.name. I see it populates in host variables, but groups are not created
The servicenow.servicenow.now inventory plugin that you’re using extends the base constructed inventory class. Among the options that it inherits from that parent class, it lists “strict”.
If you’re having trouble with groups not showing up, you should first try setting the “strict” option to true (add to the yaml inventory gist you link). Then repeat the update. Hopefully it will give an interesting error for some entry which it was ignoring before (causing your groups to not show up). It can be difficult to re-write the templates to work with the “strict” option, but it should always be possible, and ultimately it’s the only way to accurately debug those gnarly constructed groups.
ok, well first it complained about ‘tags’ being undefined - so I removed that and now complains that u_business_unit is undefined - it shows up in host’s variables and my filter only allows if it ISNOTEMPTY - can’t say particularly helpful error