Files
community.general/contrib/inventory
Will Thames f9a179f770 Handle missing docker-py better (#27540)
* Update docker inventory to use APIClient

docker-py has been updated, and the `Client` class no longer
exists. We use the new `APIClient` class.

To provide graceful failure when docker-py is not installed,
we need to create a dummy `Client` class so that the inventory
script will get as far as displaying a useful error message

Before

```
$ contrib/inventory/docker.py --pretty
Traceback (most recent call last):
  File "contrib/inventory/docker.py", line 418, in <module>
    class AnsibleDockerClient(Client):
NameError: name 'Client' is not defined
```

After

```
$ contrib/inventory/docker.py --pretty
Failed to import docker-py. Try `pip install docker-py` - cannot import name Client
```

* docker inventory configuration file location

Allow docker.yml to live next to docker.py, as well as in the
current directory
2017-09-10 19:06:57 -07:00
..
2016-06-29 14:31:25 -04:00
2017-05-09 16:38:08 -05:00
2016-11-02 17:00:27 -07:00
2017-03-27 14:54:33 -04:00
2017-08-18 15:16:06 -04:00
2016-11-23 14:39:25 -05:00
2017-08-09 08:41:12 -04:00
2017-05-09 16:38:08 -05:00
2017-05-09 16:38:08 -05:00
2015-09-01 17:10:37 +02:00
2017-05-09 16:38:08 -05:00
2017-05-09 16:38:08 -05:00
2017-05-09 16:38:08 -05:00
2017-05-09 16:38:08 -05:00
2017-05-09 16:38:08 -05:00
2016-01-20 15:27:06 -05:00
2016-12-13 13:51:13 -05:00
2015-11-13 21:57:28 -08:00
2017-08-04 13:28:40 -04:00
2015-07-31 14:18:59 +02:00
2017-05-09 16:38:08 -05:00
2017-05-09 16:38:08 -05:00
2017-05-09 16:38:08 -05:00
2017-01-17 14:01:58 -05:00
2016-12-08 11:35:20 -05:00
2017-05-09 16:38:08 -05:00
2017-05-09 16:38:08 -05:00