From dcc169c0a6f7cb36c8ca9ef5c1b65f402b5d32de Mon Sep 17 00:00:00 2001 From: Daniel Alley Date: Mon, 17 Dec 2018 18:43:08 -0500 Subject: [PATCH] Don't use a defaultdict for summaries It doesn't make as much sense as it does for the other get_content functions. --- pulp_smash/pulp3/utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pulp_smash/pulp3/utils.py b/pulp_smash/pulp3/utils.py index 3ec3a6b04..bd810a4eb 100644 --- a/pulp_smash/pulp3/utils.py +++ b/pulp_smash/pulp3/utils.py @@ -175,7 +175,7 @@ def inner(repo, version_href=None): if version_href is None: # Repository has no latest version, and therefore no content. - return defaultdict(lambda x: 0) + return {} client = api.Client(config.get_config(), api.page_handler) return client.get(version_href)[summary_field]