showoci: error in "__load_functions_functions"
還沒有人認領這個 Issue。
評估
研究方向
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.
由索引模型根據 Issue 內容生成。
描述
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
- 主要語言
- Python
- 星號
- 474
- 分支
- 326
- 平均合併
- 10 分鐘
- 30 天內合併 PR
- 6
環境準備
- 沒有 Dockerfile 或 Docker Compose 檔案
- 沒有 Pull Request 範本
- 閱讀貢獻指南
從這裡開始
- 先讀完整個 Issue,再讀專案的貢獻指南。
- 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
- Fork 儲存庫,在一個分支上完成修改。
- 送出 Pull Request,並在描述裡引用這個 Issue 編號。
oracle/oci-python-sdk 的其他 Issue
-
SDK
難度 1/5 1 小時以內 新手友好度 78/100
oracle/oci-python-sdk#904 · 1 則留言 ·
-
peeepeepooopooo未關閉
難度 5/5 一週以上 新手友好度 1/100
oracle/oci-python-sdk#920 ·
-
Exadata Fleet Update
難度 3/5 1-2 天 新手友好度 54/100
oracle/oci-python-sdk#906 ·
-
難度 3/5 1-2 天 新手友好度 38/100
oracle/oci-python-sdk#905 · 2 則留言 ·
-
難度 4/5 3-5 天 新手友好度 48/100
oracle/oci-python-sdk#890 · 3 則留言 ·
查看 oracle/oci-python-sdk 的全部 Issue
相似的 Issue
-
難度 2/5 1-3 小時 新手友好度 66/100
-
bug
難度 2/5 1-3 小時 新手友好度 66/100
raman325/lock_code_manager#1864 ·
維護者通常 1 天內回覆
-
難度 2/5 1-3 小時 新手友好度 78/100
維護者通常 1 天內回覆
-
難度 1/5 1 小時以內 新手友好度 78/100
521xueweihan/HelloGitHub#4636 ·
-
bug improve content
難度 1/5 1 小時以內 新手友好度 92/100
opensafely/documentation#2102 ·
維護者通常 1 天內回覆