showoci: error in "__load_functions_functions"
Ninguém assumiu esta issue ainda.
Avaliação
- Dificuldade
- 3/5
- Tempo estimado
- Meio dia
- Facilidade para iniciantes
- 42/100
Direção de pesquisa
The error comes from __load_functions_functions in the ShowOCIService class, which reads an image attribute from a FunctionSummary object that does not have it. Start by finding that method and the place it reads image and image_digest, then check the linked FunctionSourceDetails reference to see how source_type (CONTAINER_IMAGE, PRE_BUILT_FUNCTIONS, ARCHIVE) changes which fields exist. Done when functions with non-container sources load without the error and container-image functions still report their image.
Escrita pelo modelo de indexação a partir do texto da issue.
Descrição
When I run showoci version "26.10.27", I get the error shown below.
Looks like it tries to get the image (and image_digest), but this is not part of the response body.
"type": "errors",
"data": [
{
"class": "ShowOCIService",
"function": "__load_functions_functions",
"compartment": "",
"region": "eu-frankfurt-1",
"error": "'FunctionSummary' object has no attribute 'image'",
"is_warning": "False"
},
To get the image and image_digest data, you need to look at the function SourceDetails.
Depending on the source_type (if it's CONTAINER_IMAGE ), the image and image_digest are known.
Other source types (PRE_BUILT_FUNCTIONS and ARCHIVE ) have different attributes.
See: FunctionSourceDetails Reference
Hope this can be fixed in a future release.
Thanks in advance.
Herman
- Linguagem predominante
- Python
- Estrelas
- 474
- Forks
- 326
- Merge médio
- 10min
- PRs com merge (30d)
- 6
Preparar o ambiente
- Sem Dockerfile nem arquivo Docker Compose
- Sem modelo de pull request
- Ler o guia de contribuição
Primeiros passos
- Leia a issue inteira e depois o guia de contribuição do projeto.
- Comente na issue dizendo que vai assumir — evita que duas pessoas façam o mesmo trabalho.
- Faça um fork do repositório e trabalhe em uma branch.
- Abra um pull request que referencie o número da issue.
Mais de oracle/oci-python-sdk
-
SDK
Dificuldade 1/5 Menos de uma hora Facilidade para iniciantes 78/100
oracle/oci-python-sdk#904 · 1 comentário ·
-
peeepeepooopoooAberta
Dificuldade 5/5 Mais de uma semana Facilidade para iniciantes 1/100
oracle/oci-python-sdk#920 ·
-
Exadata Fleet Update
Dificuldade 3/5 1-2 dias Facilidade para iniciantes 54/100
oracle/oci-python-sdk#906 ·
-
Dificuldade 3/5 1-2 dias Facilidade para iniciantes 38/100
oracle/oci-python-sdk#905 · 2 comentários ·
-
Dificuldade 4/5 3-5 dias Facilidade para iniciantes 48/100
oracle/oci-python-sdk#890 · 3 comentários ·
Todas as issues de oracle/oci-python-sdk
Issues semelhantes
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 78/100
Mantenedores costumam responder em até 1 dia
-
bug improve content
Dificuldade 1/5 Menos de uma hora Facilidade para iniciantes 92/100
opensafely/documentation#2102 ·
Mantenedores costumam responder em até 1 dia
-
difficulty:1 documentation
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 82/100
MakazhanAlpamys/Soup#3533 ·
Mantenedores costumam responder em até 1 dia
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 74/100
Mantenedores costumam responder em até 1 dia
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 76/100
onyx-dot-app/onyx#18730 ·
Mantenedores costumam responder em até 1 dia