From 09dde7170fb8f2510aa3e15b29b202c8c7c0f3fa Mon Sep 17 00:00:00 2001 From: Chen Sun Date: Wed, 12 Apr 2023 00:55:04 +0000 Subject: [PATCH] fix pipeline list-versions --- sdk/python/kfp/cli/pipeline.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sdk/python/kfp/cli/pipeline.py b/sdk/python/kfp/cli/pipeline.py index 42e9ecc567a..3631f0ed4b2 100644 --- a/sdk/python/kfp/cli/pipeline.py +++ b/sdk/python/kfp/cli/pipeline.py @@ -191,8 +191,8 @@ def list_versions(ctx: click.Context, pipeline_id: str, page_token: str, sort_by=sort_by, filter=filter) output.print_output( - response.versions or [], - output.ModelType.PIPELINE, + response.pipeline_versions or [], + output.ModelType.PIPELINE_VERSION, output_format, )