From f086eea754cb9f2dc4dbc9995b30c6439276a7d3 Mon Sep 17 00:00:00 2001 From: Jimmy Zelinskie Date: Tue, 21 Mar 2017 15:36:46 -0400 Subject: [PATCH] data.interfaces.v1: explicitly use kwargs This fixes the function from accidentally using the wrong arguments positionally for the new `repo_kind` kwarg. --- data/interfaces/v1.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/data/interfaces/v1.py b/data/interfaces/v1.py index b59142975..cfcbd25ca 100644 --- a/data/interfaces/v1.py +++ b/data/interfaces/v1.py @@ -383,8 +383,9 @@ class PreOCIModel(DockerRegistryV1DataInterface): return bool(model.oauth.validate_access_token(token)) def get_sorted_matching_repositories(self, search_term, filter_username=None, offset=0, limit=25): - repos = model.repository.get_filtered_matching_repositories(search_term, filter_username, - offset, limit) + repos = model.repository.get_filtered_matching_repositories(search_term, + filter_username=filter_username, + offset=offset, limit=limit) return [_repository_for_repo(repo) for repo in repos]