2
0
mirror of https://github.com/xcat2/confluent.git synced 2024-11-22 01:22:00 +00:00

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.
This commit is contained in:
Jarrod Johnson 2021-09-13 11:48:36 -04:00
parent 66ddcfc194
commit d254cb08ac

View File

@ -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()