From e31a78b34d2ca957d6a3c227c58fe95d1a1f730a Mon Sep 17 00:00:00 2001 From: Sander Steffann Date: Tue, 30 Jun 2020 18:56:55 +0200 Subject: [PATCH] Fix #1247 by making PEM naming consistent --- napalm/junos/junos.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/napalm/junos/junos.py b/napalm/junos/junos.py index a8ce51b98..9b40b960d 100644 --- a/napalm/junos/junos.py +++ b/napalm/junos/junos.py @@ -429,6 +429,9 @@ def get_environment(self): structured_object_data["class"] = current_class if structured_object_data["class"] == "Power": + # Make sure naming is consistent + sensor_object = sensor_object.replace("PEM", "Power Supply") + # Create a dict for the 'power' key try: environment_data["power"][sensor_object] = {}