* It's a copy/paste issue. Changed the constant name from _DEFAULT_MDADM_BIN_PATHS to _DEFAULT_STORCLI_BIN_PATHS
Changes in V2: * Use _DEFAULT_BIN_PATHS instead. Signed-off-by: Gris Ge <f...@redhat.com> --- plugin/megaraid/megaraid.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/plugin/megaraid/megaraid.py b/plugin/megaraid/megaraid.py index 7f79d34..1d7856d 100644 --- a/plugin/megaraid/megaraid.py +++ b/plugin/megaraid/megaraid.py @@ -182,7 +182,7 @@ def _mega_raid_type_to_lsm(vd_basic_info, vd_prop_info): class MegaRAID(IPlugin): - _DEFAULT_MDADM_BIN_PATHS = [ + _DEFAULT_BIN_PATHS = [ "/opt/MegaRAID/storcli/storcli64", "/opt/MegaRAID/storcli/storcli"] _CMD_JSON_OUTPUT_SWITCH = 'J' @@ -191,9 +191,9 @@ def __init__(self): def _find_storcli(self): """ - Try _DEFAULT_MDADM_BIN_PATHS + Try _DEFAULT_BIN_PATHS """ - for cur_path in MegaRAID._DEFAULT_MDADM_BIN_PATHS: + for cur_path in MegaRAID._DEFAULT_BIN_PATHS: if os.path.lexists(cur_path): self._storcli_bin = cur_path -- 1.8.3.1 ------------------------------------------------------------------------------ Dive into the World of Parallel Programming The Go Parallel Website, sponsored by Intel and developed in partnership with Slashdot Media, is your hub for all things parallel software development, from weekly thought leadership blogs to news, videos, case studies, tutorials and more. Take a look and join the conversation now. http://goparallel.sourceforge.net/ _______________________________________________ Libstoragemgmt-devel mailing list Libstoragemgmt-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/libstoragemgmt-devel