aboutsummaryrefslogtreecommitdiffstats
path: root/config.py
diff options
context:
space:
mode:
authorGravatar Tagptroll1 <[email protected]>2019-02-14 18:40:00 +0100
committerGravatar Tagptroll1 <[email protected]>2019-02-14 18:40:00 +0100
commit021d36264bce20a1b8c3eb99176dc049483e5b7b (patch)
tree5a414fc2ebb338653f578026b234c3d295bbb014 /config.py
parentUpgrades Pipfile.lock to use requests 2.20.1, fixes CVE-2018-18074 (#2) (diff)
flake8 linelength change
Diffstat (limited to 'config.py')
-rw-r--r--config.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/config.py b/config.py
index 455c79e..846ad4a 100644
--- a/config.py
+++ b/config.py
@@ -12,7 +12,8 @@ def autodiscover():
try:
container = client.containers.get(name)
if container.status == "running":
- host = list(container.attrs.get('NetworkSettings').get('Networks').values())[0]['IPAddress']
+ host = list(container.attrs.get('NetworkSettings').get('Networks').values())
+ host = host[0]['IPAddress']
return host
except NotFound: