From b9f7da7b4443ad35eb3268af595480b679e76a8e Mon Sep 17 00:00:00 2001 From: Paul Durivage Date: Mon, 5 May 2014 10:51:58 -0500 Subject: [PATCH] Docker client occasionally returns a NoneType, so we have to catch the TypeError --- plugins/inventory/docker.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/inventory/docker.py b/plugins/inventory/docker.py index 275be2b301b..30cb354b53d 100755 --- a/plugins/inventory/docker.py +++ b/plugins/inventory/docker.py @@ -299,7 +299,7 @@ def list_groups(): try: port = client.port(container, ssh_port)[0] - except (IndexError, AttributeError): + except (IndexError, AttributeError, TypeError): port = dict() try: