Skip to content

Commit

Permalink
Formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
TheBurchLog committed Dec 13, 2023
1 parent e4585c1 commit e6b4519
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions brewtils/rest/publish_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,8 @@ def publish(
Topic is added to request.metadata["_topic"]
Args:
_topic (str): The topic to publish to, default is Plugin level topic (Namespace.System.Version.Instance)
_topic (str): The topic to publish to, default is Plugin level topic
(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,7 +93,12 @@ def publish(
and brewtils.plugin.CONFIG.version
and brewtils.plugin.CONFIG.instance_name
):
_topic = f'{brewtils.plugin.CONFIG.namespace or ""}.{brewtils.plugin.CONFIG.name}.{brewtils.plugin.CONFIG.version}.{brewtils.plugin.CONFIG.instance_name}'
_topic = "{0}.{1}.{2}.{3}".format(
brewtils.plugin.CONFIG.namespace or "",
brewtils.plugin.CONFIG.name,
brewtils.plugin.CONFIG.version,
brewtils.plugin.CONFIG.instance_name,
)
else:
raise BrewtilsException("Unable to determine _topic to publish to")

Expand Down

0 comments on commit e6b4519

Please sign in to comment.