showoci: error in "__load_functions_functions"
Personne n'a encore pris cette issue.
Évaluation
- Difficulté
- 3/5
- Temps estimé
- Une demi-journée
- Accessibilité débutants
- 42/100
Piste de recherche
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.
Rédigé par le modèle d'indexation à partir du texte de l'issue.
Description
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
- Langage dominant
- Python
- Étoiles
- 474
- Forks
- 326
- Merge moyen
- 10 min
- PR mergées (30 j)
- 6
Préparer son environnement
- Aucun Dockerfile ni fichier Docker Compose
- Aucun modèle de pull request
- Lire le guide de contribution
Par où commencer
- Lisez l'issue en entier, puis le guide de contribution du projet.
- Signalez en commentaire que vous la prenez — cela évite que deux personnes fassent le même travail.
- Forkez le dépôt et travaillez sur une branche.
- Ouvrez une pull request qui référence le numéro de l'issue.
Autres issues de oracle/oci-python-sdk
-
SDK
Difficulté 1/5 Moins d'une heure Accessibilité débutants 78/100
oracle/oci-python-sdk#904 · 1 commentaire ·
-
peeepeepooopoooOuverte
Difficulté 5/5 Plus d'une semaine Accessibilité débutants 1/100
oracle/oci-python-sdk#920 ·
-
Exadata Fleet Update
Difficulté 3/5 1-2 jours Accessibilité débutants 54/100
oracle/oci-python-sdk#906 ·
-
Exception error by missing classOuverte
Difficulté 3/5 1-2 jours Accessibilité débutants 38/100
oracle/oci-python-sdk#905 · 2 commentaires ·
-
Difficulté 4/5 3-5 jours Accessibilité débutants 48/100
oracle/oci-python-sdk#890 · 3 commentaires ·
Toutes les issues de oracle/oci-python-sdk
Issues similaires
-
Difficulté 2/5 1-3 heures Accessibilité débutants 78/100
Les mainteneurs répondent en général sous 1 jour
-
bug improve content
Difficulté 1/5 Moins d'une heure Accessibilité débutants 92/100
opensafely/documentation#2102 ·
Les mainteneurs répondent en général sous 1 jour
-
difficulty:1 documentation
Difficulté 2/5 1-3 heures Accessibilité débutants 82/100
MakazhanAlpamys/Soup#3533 ·
Les mainteneurs répondent en général sous 1 jour
-
Difficulté 2/5 1-3 heures Accessibilité débutants 74/100
Les mainteneurs répondent en général sous 1 jour
-
Difficulté 2/5 1-3 heures Accessibilité débutants 76/100
onyx-dot-app/onyx#18730 ·
Les mainteneurs répondent en général sous 1 jour