def validate_mongodb_install(install_dir):
    log_info(install_dir % "Verifying mongodb installation %s")
    mongod_exe = os.path.join(install_dir, "bin", "mongod")
    cmd = [mongod_exe, "--version"]
    try:
        execute_command(cmd)
        log_info("Validation passed!")
    except CalledProcessError, cpe:
        log_exception(cpe)
        raise MongoctlException("MongoDB installation failed. Validation command %s failed with error: %s" %
                                (" ".join(cmd), cpe.output))

###############################################################################
# uninstall_mongodb
###############################################################################
dataset/ETHPy150Open mongolab/mongoctl/mongoctl/commands/misc/install.py/validate_mongodb_install/swapped operands of `%`