1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00

fixes the now-incorrect module for ApiError

https://github.com/dotcloud/docker-py/blob/0.3.2/docker/errors.py
- ApiError is now(0.3.2) under the docker.errors
This commit is contained in:
Stephen Paul Suarez 2014-06-25 14:20:07 +08:00
parent 375edbd087
commit dfabf2707a

View file

@ -235,7 +235,7 @@ def main():
module.exit_json(failed=failed, changed=manager.has_changed(), msg=msg, image_id=image_id)
except docker.client.APIError as e:
except docker.errors.APIError as e:
module.exit_json(failed=True, changed=manager.has_changed(), msg="Docker API error: " + e.explanation)
except RequestException as e: