def check_client_version(client, version): """Checks if the client's version is compatible with the given version @param client: The client to check. @param version: The version to compare against. @return: True if the client version is compatible with the given version parameter, False otherwise. """ current_version = execute(client, '', params='--version', merge_stderr=True) if not current_version.strip(): raise exceptions.TempestException('"%s --version" output was empty' % client) return versionutils.is_compatible(version, current_version, same_major=False)
def check_client_version(client, version): """Checks if the client's version is compatible with the given version @param client: The client to check. @param version: The version to compare against. @return: True if the client version is compatible with the given version parameter, False otherwise. """ current_version = base.execute(client, '', params='--version', merge_stderr=True, cli_dir=CONF.cli.cli_dir) if not current_version.strip(): raise exceptions.TempestException('"%s --version" output was empty' % client) return versionutils.is_compatible(version, current_version, same_major=False)