From bc3fd236d89ca9c5662aae6b579bba17be920fec Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jon=20H=C3=A4ggblad?= Date: Fri, 13 Jan 2023 15:43:29 +0100 Subject: [PATCH] client-core: fix bug with force-register-gateway (#2844) --- clients/client-core/src/init/mod.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/clients/client-core/src/init/mod.rs b/clients/client-core/src/init/mod.rs index 6a84a3d37a..9af8a7c1bc 100644 --- a/clients/client-core/src/init/mod.rs +++ b/clients/client-core/src/init/mod.rs @@ -124,7 +124,7 @@ where // If we are not registering, just return this and assume the caller has the keys already and // wants to keep the, - if user_chosen_gateway_id.is_some() { + if !register_gateway && user_chosen_gateway_id.is_some() { println!("Using gateway provided by user, keeping existing keys"); return Ok(gateway.into()); }