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 小时 新手友好度 78/100
维护者通常 1 天内回复
-
bug improve content
难度 1/5 1 小时以内 新手友好度 92/100
opensafely/documentation#2102 ·
维护者通常 1 天内回复
-
difficulty:1 documentation
难度 2/5 1-3 小时 新手友好度 82/100
MakazhanAlpamys/Soup#3533 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 74/100
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 76/100
onyx-dot-app/onyx#18730 ·
维护者通常 1 天内回复