Skip to content

Commit

Permalink
DeviceBase.get_name should raise NotImplementedError like other membe…
Browse files Browse the repository at this point in the history
…r method (sonic-net#68)
  • Loading branch information
Junchao-Mellanox authored and jleveque committed Dec 6, 2019
1 parent 6ad48b8 commit cdaefa2
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions sonic_platform_base/device_base.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@ def get_name(self):
Returns:
string: The name of the device
"""
raise NotImplementedError


def get_presence(self):
"""
Expand Down

0 comments on commit cdaefa2

Please sign in to comment.