diff --git a/ccmlib/common.py b/ccmlib/common.py index 075eb4b8..4edd4def 100644 --- a/ccmlib/common.py +++ b/ccmlib/common.py @@ -591,11 +591,16 @@ def isScylla(install_dir): raise ArgumentError('Undefined installation directory') - return (os.path.exists(os.path.join(install_dir, 'scylla')) or - os.path.exists(os.path.join(install_dir, 'build', 'debug', 'scylla')) or - os.path.exists(os.path.join(install_dir, 'build', 'dev', 'scylla')) or - os.path.exists(os.path.join(install_dir, 'build', 'release', 'scylla')) or - os.path.exists(os.path.join(install_dir, 'bin', 'scylla'))) + if os.path.exists(os.path.join(install_dir, 'scylla')): + return True + + scylla_build_modes = ['debug', 'dev', 'release'] + cmake_build_types = ['Debug', 'Dev', 'RelWithDebInfo'] + for mode in scylla_build_modes + cmake_build_types: + if os.path.exists(os.path.join(install_dir, 'build', mode, 'scylla')): + return True + + return os.path.exists(os.path.join(install_dir, 'bin', 'scylla')) def isOpscenter(install_dir):