def create_keystore()

in cars/v1/apm_tracing/config.py [0:0]


def create_keystore(install_root, keystore_binary, env):
    logger = logging.getLogger(LOGGER_NAME)

    keystore_create_command = "{keystore} -s create".format(keystore=keystore_binary)

    return_code = process.run_subprocess_with_logging(keystore_create_command, env=env)

    if return_code != 0:
        logger.error(
            "%s has exited with code [%d]", keystore_create_command, return_code
        )
        raise exceptions.SystemSetupError(
            "Could not initialize a keystore. Please see the log for details."
        )