From d254cb08ac660c4fc0c6644d8369969979f7807f Mon Sep 17 00:00:00 2001 From: Jarrod Johnson Date: Mon, 13 Sep 2021 11:48:36 -0400 Subject: [PATCH] Default to None for second arg to get_apikey In some context, we don't need to check both, we have a confirmed manager. Just take one argument for that scenario. --- confluent_osdeploy/common/opt/confluent/bin/apiclient | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/confluent_osdeploy/common/opt/confluent/bin/apiclient b/confluent_osdeploy/common/opt/confluent/bin/apiclient index 5df24a10..31f5322a 100644 --- a/confluent_osdeploy/common/opt/confluent/bin/apiclient +++ b/confluent_osdeploy/common/opt/confluent/bin/apiclient @@ -13,7 +13,7 @@ import time class InvalidApiKey(Exception): pass -def get_apikey(nodename, mgr, mgr6): +def get_apikey(nodename, mgr, mgr6=None): apikey = "" if os.path.exists('/etc/confluent/confluent.apikey'): apikey = open('/etc/confluent/confluent.apikey').read().strip()