image/appc: fix volume conversion and add tests
This commit is contained in:
parent
048f932094
commit
7a957c94c8
3 changed files with 24 additions and 3 deletions
|
@ -156,8 +156,8 @@ class DockerV1ToACIManifestTranslator(object):
|
|||
volume_name = DockerV1ToACIManifestTranslator._ac_name(docker_volume_path)
|
||||
return "volume-%s" % volume_name
|
||||
|
||||
volume_list = docker_config['Volumes'] or docker_config['volumes'] or []
|
||||
for docker_volume_path in volume_list:
|
||||
volume_list = docker_config['Volumes'] or docker_config['volumes'] or {}
|
||||
for docker_volume_path in volume_list.iterkeys():
|
||||
if not docker_volume_path:
|
||||
continue
|
||||
|
||||
|
|
Reference in a new issue