From 417c7d0dab51609b2ec7bc8ed5b046b6d4a46520 Mon Sep 17 00:00:00 2001 From: Benjamin Greschbach Date: Mon, 31 May 2021 10:49:51 +0200 Subject: [PATCH] send complete lb config to set_load_balancer_ssl_certificates (#196) send complete lb config to set_load_balancer_ssl_certificates --- lemur-plugin-gcp/plugin_gcp/plugin.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/lemur-plugin-gcp/plugin_gcp/plugin.py b/lemur-plugin-gcp/plugin_gcp/plugin.py index 0a19939b31..50576d25e0 100644 --- a/lemur-plugin-gcp/plugin_gcp/plugin.py +++ b/lemur-plugin-gcp/plugin_gcp/plugin.py @@ -130,9 +130,8 @@ def update_endpoint(self, endpoint, cert_name): return new_certificate_list = [gcp_cert["selfLink"]] + lb["sslCertificates"] - client.set_load_balancer_ssl_certificates( - target_proxy_name, endpoint.type, new_certificate_list - ) + lb["sslCertificates"] = new_certificate_list + client.set_load_balancer_ssl_certificates(target_proxy_name, endpoint.type, lb) logger.info(f"Attached certificate {cert_name} to {lb['name']}")