Skip to content

Commit a27d30b

Browse files
ISSUE #390
1 parent f6ac210 commit a27d30b

File tree

1 file changed

+3
-1
lines changed
  • packages/plugins/minos-discovery-kong/minos/plugins/kong

1 file changed

+3
-1
lines changed

packages/plugins/minos-discovery-kong/minos/plugins/kong/client.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,13 +28,15 @@
2828
class KongClient(ABC, SetupMixin):
2929
"""Kong Client class."""
3030

31-
def __init__(self, protocol: str = "http", host: str = None, port: str = None, token_expiration_sec: int = 60 * 5,
31+
def __init__(self, protocol: str = "http", host: str = None, port: str = None, token_expiration_sec: int = None,
3232
**kwargs):
3333
super().__init__(**kwargs)
3434
if host is None:
3535
host = "localhost"
3636
if port is None:
3737
port = 8001
38+
if token_expiration_sec is None:
39+
token_expiration_sec = 60 * 5
3840

3941
self.route = f"{protocol}://{host}:{port}"
4042
self.token_expiration_sec = token_expiration_sec

0 commit comments

Comments
 (0)