def parse_bytes(n):
    try:
        return sdk_parse_bytes(n)
    except DockerException:
        return None
Beispiel #2
0
def parse_bytes(n):
    try:
        return sdk_parse_bytes(n)
    except DockerException:
        raise ConfigurationError(
            'Invalid format for bytes value: {}'.format(n))
Beispiel #3
0
def parse_bytes(n):
    try:
        return sdk_parse_bytes(n)
    except DockerException:
        return None
Beispiel #4
0
def parse_bytes(n):
    try:
        return sdk_parse_bytes(n)
    except DockerException:
        raise ConfigurationError('Invalid format for bytes value: {}'.format(n))