Skip to content

Commit 4158105

Browse files
committed
- Deleted hardcoded default user and password because of SonarCloud.
issue #283
1 parent 1492774 commit 4158105

File tree

2 files changed

+4
-12
lines changed

2 files changed

+4
-12
lines changed

packages/plugins/minos-broker-rabbitmq/minos/plugins/rabbitmq/publisher.py

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,8 @@ def __init__(
3333
*args,
3434
host: Optional[str] = None,
3535
port: Optional[int] = None,
36-
user: Optional[str] = None,
37-
password: Optional[str] = None,
36+
user: str = None,
37+
password: str = None,
3838
**kwargs,
3939
):
4040
super().__init__(*args, **kwargs)
@@ -43,10 +43,6 @@ def __init__(
4343
host = "localhost"
4444
if port is None:
4545
port = 5672
46-
if user is None:
47-
user = "guest"
48-
if password is None:
49-
password = "guest"
5046

5147
self.host = host
5248
self.port = port

packages/plugins/minos-broker-rabbitmq/minos/plugins/rabbitmq/subscriber.py

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -47,8 +47,8 @@ def __init__(
4747
topics: Iterable[str],
4848
host: Optional[str] = None,
4949
port: Optional[int] = None,
50-
user: Optional[str] = None,
51-
password: Optional[str] = None,
50+
user: str = None,
51+
password: str = None,
5252
**kwargs,
5353
):
5454
super().__init__(topics, **kwargs)
@@ -57,10 +57,6 @@ def __init__(
5757
host = "localhost"
5858
if port is None:
5959
port = 5672
60-
if user is None:
61-
user = "guest"
62-
if password is None:
63-
password = "guest"
6460

6561
self.host = host
6662
self.port = port

0 commit comments

Comments
 (0)