Skip to content

Commit

Permalink
Cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
TheBurchLog authored Dec 13, 2023
1 parent 96c0214 commit 68b684b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion CHANGELOG.rst
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ Brewtils Changelog
TBD

- Added new KWARG input to @command for tag/tags. This can be utilized for filtering commands.
- Adding defaul topic for PublishClient to Plugins {Namespace}.{System}.{Version}.{Instance}
- Adding default topic for PublishClient to Plugins {Namespace}.{System}.{Version}.{Instance}
- Removed Python 12 support until we upgrade Marshmallow dependency to 3.15 or greater

3.21.0
Expand Down
5 changes: 3 additions & 2 deletions brewtils/rest/publish_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ def publish(
Args:
_topic (str): The topic to publish to, default is Plugin level topic
(Namespace.System.Version.Instance)
{Namespace}.{System}.{Version}.{Instance}
_regex_only (bool): If the request will be resolved against only annotated topics
from the @subscribe command
_propagate (bool): If the request will be pushed up to the parent to be resolved.
Expand All @@ -92,9 +92,10 @@ def publish(
brewtils.plugin.CONFIG.name
and brewtils.plugin.CONFIG.version
and brewtils.plugin.CONFIG.instance_name
and brewtils.plugin.CONFIG.namespace
):
_topic = "{0}.{1}.{2}.{3}".format(
brewtils.plugin.CONFIG.namespace or "",
brewtils.plugin.CONFIG.namespace,
brewtils.plugin.CONFIG.name,
brewtils.plugin.CONFIG.version,
brewtils.plugin.CONFIG.instance_name,
Expand Down

0 comments on commit 68b684b

Please sign in to comment.