diff --git a/plugins/inventory/docker.py b/plugins/inventory/docker.py index 275be2b301..30cb354b53 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: