Skip to content

Commit 17c9bdd

Browse files
committed
fix: high level list method
1 parent 3d3e0aa commit 17c9bdd

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

google/cloud/aiplatform/base.py

+4-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# -*- coding: utf-8 -*-
22

3-
# Copyright 2020 Google LLC
3+
# Copyright 2022 Google LLC
44
#
55
# Licensed under the Apache License, Version 2.0 (the "License");
66
# you may not use this file except in compliance with the License.
@@ -1064,9 +1064,11 @@ def _list(
10641064
or initializer.global_config.common_location_path(
10651065
project=project, location=location
10661066
),
1067-
"filter": filter,
10681067
}
10691068

1069+
if filter:
1070+
list_request["filter"] = filter
1071+
10701072
if order_by:
10711073
list_request["order_by"] = order_by
10721074

0 commit comments

Comments
 (0)