Fix exception bases for manifest exceptions
This commit is contained in:
parent
17d7828f1a
commit
dcf312d94d
2 changed files with 4 additions and 2 deletions
|
@ -100,6 +100,8 @@ from jsonschema import validate as validate_schema, ValidationError
|
||||||
from dateutil.parser import parse as parse_date
|
from dateutil.parser import parse as parse_date
|
||||||
|
|
||||||
from digest import digest_tools
|
from digest import digest_tools
|
||||||
|
from image.docker import ManifestException
|
||||||
|
|
||||||
|
|
||||||
DOCKER_SCHEMA2_CONFIG_HISTORY_KEY = "history"
|
DOCKER_SCHEMA2_CONFIG_HISTORY_KEY = "history"
|
||||||
DOCKER_SCHEMA2_CONFIG_ROOTFS_KEY = "rootfs"
|
DOCKER_SCHEMA2_CONFIG_ROOTFS_KEY = "rootfs"
|
||||||
|
@ -112,7 +114,7 @@ DOCKER_SCHEMA2_CONFIG_TYPE_KEY = "type"
|
||||||
LayerHistory = namedtuple('LayerHistory', ['created', 'created_datetime', 'command', 'is_empty'])
|
LayerHistory = namedtuple('LayerHistory', ['created', 'created_datetime', 'command', 'is_empty'])
|
||||||
|
|
||||||
|
|
||||||
class MalformedSchema2Config(Exception):
|
class MalformedSchema2Config(ManifestException):
|
||||||
"""
|
"""
|
||||||
Raised when a config fails an assertion that should be true according to the Docker Manifest
|
Raised when a config fails an assertion that should be true according to the Docker Manifest
|
||||||
v2.2 Config Specification.
|
v2.2 Config Specification.
|
||||||
|
|
|
@ -31,7 +31,7 @@ DOCKER_SCHEMA2_MANIFESTLIST_FEATURES_KEY = 'features'
|
||||||
DOCKER_SCHEMA2_MANIFESTLIST_VARIANT_KEY = 'variant'
|
DOCKER_SCHEMA2_MANIFESTLIST_VARIANT_KEY = 'variant'
|
||||||
|
|
||||||
|
|
||||||
class MalformedSchema2ManifestList(Exception):
|
class MalformedSchema2ManifestList(ManifestException):
|
||||||
"""
|
"""
|
||||||
Raised when a manifest list fails an assertion that should be true according to the
|
Raised when a manifest list fails an assertion that should be true according to the
|
||||||
Docker Manifest v2.2 Specification.
|
Docker Manifest v2.2 Specification.
|
||||||
|
|
Reference in a new issue