Skip to content

Commit

Permalink
Add configured flags and events for Gardens
Browse files Browse the repository at this point in the history
  • Loading branch information
TheBurchLog authored Jan 17, 2024
1 parent 3e03af8 commit b9d12fb
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
7 changes: 5 additions & 2 deletions brewtils/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@ class Events(Enum):
DB_UPDATE = 17
DB_DELETE = 18
GARDEN_CREATED = 19
GARDEN_CONFIGURED = 53
GARDEN_UPDATED = 20
GARDEN_REMOVED = 21
FILE_CREATED = 24
Expand Down Expand Up @@ -93,7 +94,7 @@ class Events(Enum):
COMMAND_PUBLISHING_BLOCKLIST_REMOVE = 49
COMMAND_PUBLISHING_BLOCKLIST_UPDATE = 50

# Next: 53
# Next: 54


class BaseModel(object):
Expand Down Expand Up @@ -1452,6 +1453,7 @@ def __init__(
systems=None,
connection_type=None,
connection_params=None,
connection_params_enabled=None,
has_parent=None,
parent=None,
children=None,
Expand All @@ -1464,8 +1466,9 @@ def __init__(
self.namespaces = namespaces or []
self.systems = systems or []

self.connection_type = connection_type
self.connection_type = connection_type
self.connection_params = connection_params
self.connection_params_enabled = connection_params_enabled or {}

self.has_parent = has_parent
self.parent = parent
Expand Down
1 change: 1 addition & 0 deletions brewtils/test/fixtures.py
Original file line number Diff line number Diff line change
Expand Up @@ -763,6 +763,7 @@ def garden_dict(ts_epoch, system_dict):
"systems": [system_dict],
"connection_type": "http",
"connection_params": {},
"connection_params_enabled": {"http":True},
"parent": None,
"has_parent": False,
"children": [],
Expand Down

0 comments on commit b9d12fb

Please sign in to comment.