Skip to content

Commit f6ac210

Browse files
ISSUE #390
1 parent f8f590a commit f6ac210

File tree

1 file changed

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

1 file changed

+3
-2
lines changed

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

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

31-
def __init__(self, host: str = None, port: str = None, token_expiration_sec: int = 60 * 5, **kwargs):
31+
def __init__(self, protocol: str = "http", host: str = None, port: str = None, token_expiration_sec: int = 60 * 5,
32+
**kwargs):
3233
super().__init__(**kwargs)
3334
if host is None:
3435
host = "localhost"
3536
if port is None:
3637
port = 8001
3738

38-
self.route = f"http://{host}:{port}"
39+
self.route = f"{protocol}://{host}:{port}"
3940
self.token_expiration_sec = token_expiration_sec
4041

4142
@classmethod

0 commit comments

Comments
 (0)