Skip to content

Commit

Permalink
Reverting back connection type
Browse files Browse the repository at this point in the history
  • Loading branch information
TheBurchLog committed Jan 22, 2024
1 parent 83c4f88 commit 48e149a
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 1 deletion.
5 changes: 4 additions & 1 deletion brewtils/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -1452,6 +1452,7 @@ def __init__(
status_info=None,
namespaces=None,
systems=None,
connection_type=None,
receiving_connections=None,
publishing_connections=None,
has_parent=None,
Expand All @@ -1466,6 +1467,7 @@ def __init__(
self.namespaces = namespaces or []
self.systems = systems or []

self.connection_type = connection_type
self.receiving_connections = receiving_connections or []
self.publishing_connections = publishing_connections or []

Expand All @@ -1480,12 +1482,13 @@ def __str__(self):
def __repr__(self):
return (
"<Garden: garden_name=%s, status=%s, parent=%s, has_parent=%s, " \
"receiving_connections=%s, publishing_connections=%s>"
"connection_type=%s, receiving_connections=%s, publishing_connections=%s>"
% (
self.name,
self.status,
self.parent,
self.has_parent,
self.connection_type,
self.receiving_connections,
self.publishing_connections,
)
Expand Down
1 change: 1 addition & 0 deletions brewtils/schemas.py
Original file line number Diff line number Diff line change
Expand Up @@ -501,6 +501,7 @@ class GardenSchema(BaseSchema):
name = fields.Str(allow_none=True)
status = fields.Str(allow_none=True)
status_info = fields.Nested("StatusInfoSchema", allow_none=True)
connection_type = fields.Str(allow_none=True)
receiving_connections = fields.Nested(
"ConnectionSchema", many=True, allow_none=True
)
Expand Down
1 change: 1 addition & 0 deletions brewtils/test/fixtures.py
Original file line number Diff line number Diff line change
Expand Up @@ -781,6 +781,7 @@ def garden_dict(ts_epoch, system_dict, connection_dict):
"status_info": {},
"namespaces": [system_dict["namespace"]],
"systems": [system_dict],
"connection_type": "http",
"receiving_connections": [connection_dict],
"publishing_connections": [connection_dict],
"parent": None,
Expand Down

0 comments on commit 48e149a

Please sign in to comment.