Skip to content

Commit

Permalink
Bugfix cointainer_id detectoin
Browse files Browse the repository at this point in the history
  • Loading branch information
Sudip Bhattarai committed Jan 9, 2023
1 parent 5af77b8 commit 64057b6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion nginx_proxy/WebServer.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ def learn_yourself(self):
if hostname is None:
print("[ERROR] HOSTNAME environment variable is not set")
raise Exception()
self.container = self.client.containers.get(self.hostname)
self.container = self.client.containers.get(hostname)
self.id=self.container.id
self.networks = [a for a in self.container.attrs["NetworkSettings"]["Networks"].keys()]
self.networks = {self.client.networks.get(a).id: a for a in self.networks}
Expand Down

0 comments on commit 64057b6

Please sign in to comment.