Skip to content

Commit

Permalink
Removing Garden Connection Type
Browse files Browse the repository at this point in the history
  • Loading branch information
TheBurchLog committed Jan 22, 2024
1 parent d6d4e45 commit 83c4f88
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 6 deletions.
5 changes: 1 addition & 4 deletions brewtils/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -1452,7 +1452,6 @@ def __init__(
status_info=None,
namespaces=None,
systems=None,
connection_type=None,
receiving_connections=None,
publishing_connections=None,
has_parent=None,
Expand All @@ -1467,7 +1466,6 @@ 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 @@ -1482,13 +1480,12 @@ def __str__(self):
def __repr__(self):
return (
"<Garden: garden_name=%s, status=%s, parent=%s, has_parent=%s, " \
"connection_type=%s, receiving_connections=%s, publishing_connections=%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: 0 additions & 1 deletion brewtils/schemas.py
Original file line number Diff line number Diff line change
Expand Up @@ -501,7 +501,6 @@ 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: 0 additions & 1 deletion brewtils/test/fixtures.py
Original file line number Diff line number Diff line change
Expand Up @@ -781,7 +781,6 @@ 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 83c4f88

Please sign in to comment.