Fix packet dynamic inventory "Slug" issue. (#63916)

* Fixed 'slug' bug in packet_net.py that was caused by a breaking change in the Packet API.

* Removed some debugging and comments I had left.

* Missed a spot!
pull/67442/head
Cody Hill 5 years ago committed by GitHub
parent 5aa60a5fa7
commit a753ff7cbf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -358,7 +358,7 @@ class PacketInventory(object):
if self.group_by_operating_system: if self.group_by_operating_system:
self.push(self.inventory, device.operating_system['slug'], dest) self.push(self.inventory, device.operating_system['slug'], dest)
if self.nested_groups: 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 # Inventory: Group by plan type
if self.group_by_plan_type: if self.group_by_plan_type:

Loading…
Cancel
Save