Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[docker-platform-monitor] Check if sonic_platform is available before…
… installed (sonic-net#5764) On Arista platforms, sonic_platform packages are not installed in the PMon container, but are rather mounted into the container from the host OS. Therefore, pip show sonic_platform will fail in the PMon container. This change will first check if we can import sonic_platform. If this fails, it will then fall back to checking if the package is installed. If both fail, it will attempt to install the package.
- Loading branch information