Skip to content

Commit

Permalink
Fix napalm-automation#1247 by making PEM naming consistent
Browse files Browse the repository at this point in the history
  • Loading branch information
steffann authored Jun 30, 2020
1 parent 3e676cb commit e31a78b
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions napalm/junos/junos.py
Original file line number Diff line number Diff line change
Expand Up @@ -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] = {}
Expand Down

0 comments on commit e31a78b

Please sign in to comment.