mirror of
https://github.com/xcat2/confluent.git
synced 2024-11-22 09:32:21 +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:
parent
66ddcfc194
commit
d254cb08ac
@ -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()
|
||||
|
Loading…
Reference in New Issue
Block a user