From 021d36264bce20a1b8c3eb99176dc049483e5b7b Mon Sep 17 00:00:00 2001 From: Tagptroll1 Date: Thu, 14 Feb 2019 18:40:00 +0100 Subject: flake8 linelength change --- config.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'config.py') 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: -- cgit v1.2.3