From 67e3947a9b018839140f58b986d685c1ea631411 Mon Sep 17 00:00:00 2001 From: Ralph Bean Date: Wed, 15 Feb 2017 19:42:36 -0500 Subject: [PATCH] Handle changing PDCClient API. I hit this in staging. Some versions of the pdc-client library have a different signature for PDCClient. We need to specify these as keyword arguments so we don't get spooky failures with accidental values. --- module_build_service/pdc.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/module_build_service/pdc.py b/module_build_service/pdc.py index 4d7142b9..2dd9e5ab 100644 --- a/module_build_service/pdc.py +++ b/module_build_service/pdc.py @@ -41,7 +41,11 @@ def get_pdc_client_session(config): :param config: instance of module_build_service.config.Config :return pdc_client.PDCClient instance """ - return PDCClient(config.pdc_url, config.pdc_develop, config.pdc_insecure) # hardcoded devel env + return PDCClient( + server=config.pdc_url, + develop=config.pdc_develop, + insecure=config.pdc_insecure, + ) def get_variant_dict(data): """