showoci: error in "__load_functions_functions"
Dieses Issue hat noch niemand übernommen.
Bewertung
- Schwierigkeit
- 3/5
- Geschätzter Aufwand
- Ein halber Tag
- Anfängerfreundlichkeit
- 42/100
Rechercherichtung
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.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Beschreibung
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
- Vorherrschende Sprache
- Python
- Sterne
- 474
- Forks
- 326
- Ø Merge
- 10 Min.
- Gemergte PRs (30 T.)
- 6
Entwicklungsumgebung
- Kein Dockerfile und keine Docker-Compose-Datei
- Keine Pull-Request-Vorlage
- Beitragsleitfaden lesen
Erste Schritte
- Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
- Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
- Forken Sie das Repository und arbeiten Sie in einem Branch.
- Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.
Mehr aus oracle/oci-python-sdk
-
SDK
Schwierigkeit 1/5 Unter einer Stunde Anfängerfreundlichkeit 78/100
oracle/oci-python-sdk#904 · 1 Kommentar ·
-
peeepeepooopoooOffen
Schwierigkeit 5/5 Über eine Woche Anfängerfreundlichkeit 1/100
oracle/oci-python-sdk#920 ·
-
Exadata Fleet Update
Schwierigkeit 3/5 1-2 Tage Anfängerfreundlichkeit 54/100
oracle/oci-python-sdk#906 ·
-
Schwierigkeit 3/5 1-2 Tage Anfängerfreundlichkeit 38/100
oracle/oci-python-sdk#905 · 2 Kommentare ·
-
Schwierigkeit 4/5 3-5 Tage Anfängerfreundlichkeit 48/100
oracle/oci-python-sdk#890 · 3 Kommentare ·
Alle Issues in oracle/oci-python-sdk
Ähnliche Issues
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 78/100
Maintainer antworten meist innerhalb von 1 Tag
-
bug improve content
Schwierigkeit 1/5 Unter einer Stunde Anfängerfreundlichkeit 92/100
opensafely/documentation#2102 ·
Maintainer antworten meist innerhalb von 1 Tag
-
difficulty:1 documentation
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 82/100
MakazhanAlpamys/Soup#3533 ·
Maintainer antworten meist innerhalb von 1 Tag
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 74/100
Maintainer antworten meist innerhalb von 1 Tag
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 76/100
onyx-dot-app/onyx#18730 ·
Maintainer antworten meist innerhalb von 1 Tag