diff --git a/contrib/inventory/packet_net.py b/contrib/inventory/packet_net.py index 31a00c4f1a4..22f989a9d9e 100755 --- a/contrib/inventory/packet_net.py +++ b/contrib/inventory/packet_net.py @@ -358,7 +358,7 @@ class PacketInventory(object): if self.group_by_operating_system: self.push(self.inventory, device.operating_system['slug'], dest) if self.nested_groups: - self.push_group(self.inventory, 'operating_systems', device.operating_system.slug) + self.push_group(self.inventory, 'operating_systems', device.operating_system['slug']) # Inventory: Group by plan type if self.group_by_plan_type: