Skip to content

Commit

Permalink
task: fix IP attach logging
Browse files Browse the repository at this point in the history
  • Loading branch information
razvancrainea committed Mar 21, 2024
1 parent 48962d8 commit 6507696
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion sipssert/task.py
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,10 @@ def create(self, controller, prefix=None):
try:
self.controller.docker.networks.get(network[0]).\
connect(self.container, ipv4_address = network[1])
self.log.debug("attached ip {} in network {}".format(network[1], network[0]))
if network[1]:
self.log.debug("attached ip {} in network {}".format(network[1], network[0]))
else:
self.log.debug("attached to network {}".format(network[0]))
except docker.errors.APIError as err:
self.log.exception(err)
raise err
Expand Down

0 comments on commit 6507696

Please sign in to comment.