diff --git a/formats/aci.py b/formats/aci.py index 97be94a59..dc1029d68 100644 --- a/formats/aci.py +++ b/formats/aci.py @@ -85,7 +85,6 @@ class ACIImage(TarImageFormatter): return isolators - @staticmethod def _get_docker_config_value(docker_config, key, default_value): # Try the key itself. @@ -100,7 +99,6 @@ class ACIImage(TarImageFormatter): return default_value - @staticmethod def _build_ports(docker_config): """ Builds the ports definitions for the ACI. """ @@ -143,7 +141,6 @@ class ACIImage(TarImageFormatter): def _build_volumes(docker_config): """ Builds the volumes definitions for the ACI. """ volumes = [] - names = set() def get_name(docker_volume_path): return "volume-%s" % ACIImage._ac_name(docker_volume_path) @@ -159,7 +156,6 @@ class ACIImage(TarImageFormatter): }) return volumes - @staticmethod def _build_manifest(namespace, repository, tag, docker_layer_data, synthetic_image_id): """ Builds an ACI manifest from the docker layer data. """ @@ -186,18 +182,18 @@ class ACIImage(TarImageFormatter): "acVersion": "0.6.1", "name": '%s/%s/%s' % (hostname.lower(), namespace.lower(), repository.lower()), "labels": [ - { - "name": "version", - "value": tag, - }, - { - "name": "arch", - "value": docker_layer_data.get('architecture', 'amd64') - }, - { - "name": "os", - "value": docker_layer_data.get('os', 'linux') - } + { + "name": "version", + "value": tag, + }, + { + "name": "arch", + "value": docker_layer_data.get('architecture', 'amd64') + }, + { + "name": "os", + "value": docker_layer_data.get('os', 'linux') + } ], "app": { "exec": exec_path,