Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
mdraid.py lib: Check if /usr/sbin/mdadm exists
Praviously the check was implemented using OSError return from `run` function. However, in this particular case it's not safe and leads to unexpected behaviour. Check the existence of the file explicitly instead prior the `run` function is called.
- Loading branch information