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!
This commit is contained in:
Cody Hill 2020-02-15 08:58:44 -06:00 committed by GitHub
parent 5aa60a5fa7
commit a753ff7cbf
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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: