summaryrefslogtreecommitdiff
path: root/contrib
diff options
context:
space:
mode:
authorCody Hill <15899666+c0dyhi11@users.noreply.github.com>2020-02-15 08:58:44 -0600
committerGitHub <noreply@github.com>2020-02-15 14:58:44 +0000
commita753ff7cbfaa3fc9cb19a9be4cee3324c1f44655 (patch)
treed1ae93639d9727fd94b3035f8c54da0567a2b37d /contrib
parent5aa60a5fa7ad36c0235b8f92b54a7c684e344eac (diff)
downloadansible-a753ff7cbfaa3fc9cb19a9be4cee3324c1f44655.tar.gz
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!
Diffstat (limited to 'contrib')
-rwxr-xr-xcontrib/inventory/packet_net.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/contrib/inventory/packet_net.py b/contrib/inventory/packet_net.py
index 31a00c4f1a..22f989a9d9 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: