From 88d5f15025ddd97d0001b98812877023c88c9bbb Mon Sep 17 00:00:00 2001 From: Lorin Hochstein Date: Thu, 25 Dec 2014 23:31:06 -0500 Subject: [PATCH] docker: fix volume[s]_from typo Code makes reference to volume_from instead of volumes_from. If volumes_from is passed as an argument, generates a KeyError. --- lib/ansible/modules/cloud/docker/docker.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/ansible/modules/cloud/docker/docker.py b/lib/ansible/modules/cloud/docker/docker.py index 03bf8a4af03..f71bad42e79 100644 --- a/lib/ansible/modules/cloud/docker/docker.py +++ b/lib/ansible/modules/cloud/docker/docker.py @@ -467,7 +467,7 @@ class DockerManager(object): # server APIVersion is passed to a docker-py function that takes strings _cap_ver_req = { 'dns': ((0, 3, 0), '1.10'), - 'volume_from': ((0, 3, 0), '1.10'), + 'volumes_from': ((0, 3, 0), '1.10'), 'restart_policy': ((0, 5, 0), '1.14'), # Clientside only 'insecure_registry': ((0, 5, 0), '0.0')