sonic-buildimage/platform/broadcom/sonic-platform-modules-ruijie/b6510-48vs8cq
pettershao-ragilenetworks 8ceec5c843
[ruijie] Fix show version error info (#7541)
Fix following crash in `show version`:

```
Traceback (most recent call last):
  File "/usr/local/bin/decode-syseeprom", line 32, in instantiate_eeprom_object
    eeprom = sonic_platform.platform.Platform().get_chassis().get_eeprom()
AttributeError: module 'sonic_platform' has no attribute 'platform'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/bin/decode-syseeprom", line 262, in <module>
    sys.exit(main())
  File "/usr/local/bin/decode-syseeprom", line 244, in main
    print_serial(use_db)
  File "/usr/local/bin/decode-syseeprom", line 169, in print_serial
    eeprom = instantiate_eeprom_object()
  File "/usr/local/bin/decode-syseeprom", line 34, in instantiate_eeprom_object
    log.log_error('Failed to obtain EEPROM object due to {}'.format(repr(e)))
NameError: name 'log' is not defined
```

Signed-off-by: pettershao-ragilenetworks <pettershao@ragilenetworks.com>
2021-05-06 14:53:20 -07:00
..
config [Ruijie] Add ruijie platform & device (#4954) 2021-02-24 16:45:27 -08:00
modules/driver [Ruijie] Add ruijie platform & device (#4954) 2021-02-24 16:45:27 -08:00
scripts [Ruijie] Add ruijie platform & device (#4954) 2021-02-24 16:45:27 -08:00
sonic_pcie [Ruijie] Add ruijie platform & device (#4954) 2021-02-24 16:45:27 -08:00
sonic_platform [ruijie] Fix show version error info (#7541) 2021-05-06 14:53:20 -07:00
systemd [Ruijie] Add ruijie platform & device (#4954) 2021-02-24 16:45:27 -08:00
LICENSE [Ruijie] Add ruijie platform & device (#4954) 2021-02-24 16:45:27 -08:00
MAINTAINERS [Ruijie] Add ruijie platform & device (#4954) 2021-02-24 16:45:27 -08:00
Makefile [Ruijie] Add ruijie platform & device (#4954) 2021-02-24 16:45:27 -08:00
README.md [Ruijie] Add ruijie platform & device (#4954) 2021-02-24 16:45:27 -08:00
setup.py [Ruijie] Add ruijie platform & device (#4954) 2021-02-24 16:45:27 -08:00

sonic-platform-modules-ruijie

Device drivers for support of ruijie platform for the SONiC project