Skip to content

Commit 573d26c

Browse files
committed
correct error
1 parent 2bc5f66 commit 573d26c

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
@@ -24,13 +24,15 @@ class KongClient(SetupMixin):
2424
"""Kong Client class."""
2525

2626
def __init__(
27-
self, protocol: str = "http", host: str = None, port: int = None, token_expiration_sec: int = None, **kwargs
27+
self, protocol: str = None, host: str = None, port: int = None, token_expiration_sec: int = None, **kwargs
2828
):
2929
super().__init__(**kwargs)
3030
if host is None:
3131
host = "localhost"
3232
if port is None:
3333
port = 8001
34+
if protocol is None:
35+
protocol = "http"
3436
if token_expiration_sec is None:
3537
token_expiration_sec = 60 * 5
3638

0 commit comments

Comments
 (0)