(mem_str)
Docker require that Minimum memory limit >= 4M.
Docker require that Minimum memory limit >= 4M.
Docker require that Minimum memory limit > = 4M .
def validate_docker_memory(mem_str):
    """Docker require that Minimum memory limit >= 4M."""
    try:
        mem = utils.get_docker_quantity(mem_str)
    except exception.UnsupportedDockerQuantityFormat:
        raise wsme.exc.ClientSideError(_("Invalid docker memory specified. "
                                         "Acceptable values are format: "
                                         "<number>[<unit>],"
                                         "where unit = b, k, m or g"))
    if mem < DOCKER_MINIMUM_MEMORY:
        raise wsme.exc.ClientSideError(_("Docker Minimum memory limit "
                                         "allowed is %d B.")
                                       % DOCKER_MINIMUM_MEMORY)
def validate_docker_memory ( mem_str ) : try : mem = utils . get_docker_quantity ( mem_str ) except exception . UnsupportedDockerQuantityFormat : raise wsme . exc . ClientSideError ( _ ( "Invalid docker memory specified. " "Acceptable values are format: " "<number>[<unit>]," "where unit = b, k, m or g" ) ) if mem < DOCKER_MINIMUM_MEMORY : raise wsme . exc . ClientSideError ( _ ( "Docker Minimum memory limit " "allowed is %d B." ) % DOCKER_MINIMUM_MEMORY )