Capitalize 'Id' in image_infos

This fixes a false negative result when the docker image has already been built.
This commit is contained in:
David Eyk 2014-06-25 08:32:54 -07:00
parent d5504945e8
commit bc255fe859

View File

@ -272,7 +272,7 @@ def built(name,
return _valid(
name=name,
comment='Image already built: {0}, id: {1}'.format(
name, image_infos['out']['id']))
name, image_infos['out']['Id']))
previous_id = image_infos['out']['Id'] if image_infos['status'] else None
build = __salt__['docker.build']
kw = dict(tag=name,