Check for the parent's ID in the updated ID map.

Fixes #1240
This commit is contained in:
Joseph Schorr 2016-02-15 11:02:52 -05:00
parent 69262282fe
commit 4b24556cb3

View file

@ -338,7 +338,7 @@ def _updated_v1_metadata(v1_metadata_json, updated_id_map):
parsed = json.loads(v1_metadata_json)
parsed['id'] = updated_id_map[parsed['id']]
if parsed.get('parent'):
if parsed.get('parent') and parsed['parent'] in updated_id_map:
parsed['parent'] = updated_id_map[parsed['parent']]
if parsed.get('container_config', {}).get('Image'):