Skip to content

Commit

Permalink
fix: strip slash in virtual host
Browse files Browse the repository at this point in the history
  • Loading branch information
mcPear committed Feb 24, 2023
1 parent c5eefff commit 72b974f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pikachu/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ def from_config(filename="amqp-config.yml"):
username = environ["AMQP_USERNAME"]
password = environ["AMQP_PASSWORD"]
host = environ["AMQP_HOST"]
virtual_host = environ["AMQP_VIRTUAL_HOST"]
virtual_host = environ["AMQP_VIRTUAL_HOST"].strip("/")

connection_parameters = pika.ConnectionParameters(
ssl_options=AMQPClient._resolve_ssl_options(port),
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

setuptools.setup(
name="pikachu",
version="1.2",
version="1.2.1",
author="Maciej Gruszczyński",
author_email="maciejgruszczysnki@surferseo.com",
description="Wrapper around pika inspired by lapin for convenient AMQP operations in Python APIs",
Expand Down

0 comments on commit 72b974f

Please sign in to comment.