Skip to content

Commit 4f88dd7

Browse files
authored
Merge pull request #411 from minos-framework/0.7.0
0.7.0.dev3
2 parents 6661d2c + 573d26c commit 4f88dd7

File tree

4 files changed

+8
-5
lines changed

4 files changed

+8
-5
lines changed
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# History
22

3-
## 0.1.0a0 (2022-03-31)
3+
## 0.1.0a1 (2022-03-31)
44

55
* First Alpha release

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
__author__ = "Minos Framework Devs"
44
__email__ = "[email protected]"
5-
__version__ = "0.7.0.dev2"
5+
__version__ = "0.7.0.dev3"
66

77
from .client import (
88
KongClient,

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

Lines changed: 5 additions & 2 deletions
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

@@ -42,10 +44,11 @@ def _from_config(cls, config: Config, **kwargs) -> KongClient:
4244
discovery_config = config.get_discovery()
4345

4446
token_expiration_sec = discovery_config.get("token-exp")
47+
protocol = discovery_config.get("protocol")
4548
host = discovery_config.get("host")
4649
port = discovery_config.get("port")
4750

48-
return cls(host=host, port=port, token_expiration_sec=token_expiration_sec, **kwargs)
51+
return cls(protocol=protocol, host=host, port=port, token_expiration_sec=token_expiration_sec, **kwargs)
4952

5053
@staticmethod
5154
async def register_service(

packages/plugins/minos-discovery-kong/pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[tool.poetry]
22
name = "minos-discovery-kong"
3-
version = "0.7.0.dev2"
3+
version = "0.7.0.dev3"
44
description = "The minos-kong plugin offer an interface that permit integrate Minos Microservice with Kong API Gateway"
55
readme = "README.md"
66
repository = "https://github.com/minos-framework/minos-python"

0 commit comments

Comments
 (0)