We need to make sure to use the *full* command

This commit is contained in:
Joseph Schorr 2014-12-11 18:17:15 +02:00
parent 6601e83285
commit 00299ca60f

View file

@ -62,9 +62,8 @@ class BuildJob(object):
# For each cache comment, find a child image that matches the command.
for cache_command in cache_commands:
print current_image.docker_image_id
current_image = model.find_child_image(repository, current_image, cache_command)
full_command = '["/bin/sh", "-c", "%s"]' % cache_command
current_image = model.find_child_image(repository, current_image, full_command)
if current_image is None:
return None