showoci: error in "__load_functions_functions"
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 3/5
- Thời gian dự kiến
- Nửa ngày
- Mức phù hợp với người mới
- 42/100
Hướng nghiên cứu
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.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
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
- Ngôn ngữ chính
- Python
- Star
- 474
- Fork
- 326
- Merge trung bình
- 10 phút
- Pull request đã merge (30 ngày)
- 6
Chuẩn bị môi trường
- Không có Dockerfile hay tệp Docker Compose
- Không có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của oracle/oci-python-sdk
-
SDK
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 78/100
oracle/oci-python-sdk#904 · 1 bình luận ·
-
peeepeepooopoooĐang mở
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 1/100
oracle/oci-python-sdk#920 ·
-
Exadata Fleet Update
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 54/100
oracle/oci-python-sdk#906 ·
-
Exception error by missing classĐang mở
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 38/100
oracle/oci-python-sdk#905 · 2 bình luận ·
-
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 48/100
oracle/oci-python-sdk#890 · 3 bình luận ·
Tất cả issue của oracle/oci-python-sdk
Issue tương tự
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
Maintainer thường phản hồi trong vòng 1 ngày
-
bug improve content
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 92/100
opensafely/documentation#2102 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
difficulty:1 documentation
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100
MakazhanAlpamys/Soup#3533 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 74/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
onyx-dot-app/onyx#18730 ·
Maintainer thường phản hồi trong vòng 1 ngày