diff --git a/notebooks/api/0.8/11-container-images-k8s.ipynb b/notebooks/api/0.8/11-container-images-k8s.ipynb index ef21f427a26..63eee600646 100644 --- a/notebooks/api/0.8/11-container-images-k8s.ipynb +++ b/notebooks/api/0.8/11-container-images-k8s.ipynb @@ -493,8 +493,7 @@ "assert workerimage is not None, str([image.__dict__ for image in image_list])\n", "assert workerimage.is_built is not None, str(workerimage)\n", "assert workerimage.built_at is not None, str(workerimage)\n", - "assert workerimage.image_hash is not None, str(workerimage)\n", - "assert image_list[workerimage.built_image_tag] == workerimage" + "assert workerimage.image_hash is not None, str(workerimage)" ] }, { @@ -1394,6 +1393,11 @@ } ], "metadata": { + "kernelspec": { + "display_name": "syft-3.11", + "language": "python", + "name": "python3" + }, "language_info": { "codemirror_mode": { "name": "ipython", @@ -1404,7 +1408,7 @@ "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", - "version": "3.12.5" + "version": "3.11.5" } }, "nbformat": 4, diff --git a/packages/syft/src/syft/service/worker/worker_image_service.py b/packages/syft/src/syft/service/worker/worker_image_service.py index a2bc64bb204..dd0795cf8df 100644 --- a/packages/syft/src/syft/service/worker/worker_image_service.py +++ b/packages/syft/src/syft/service/worker/worker_image_service.py @@ -194,7 +194,7 @@ def get_all(self, context: AuthedServiceContext) -> DictTuple[str, SyftWorkerIma One image one docker file for now """ images = self.stash.get_all(credentials=context.credentials).unwrap() - return DictTuple({image.id: image for image in images}) + return DictTuple({image.id.to_string(): image for image in images}) @service_method( path="worker_image.remove",