Skip to content

Commit

Permalink
fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
shubham3121 committed Sep 27, 2024
1 parent e429570 commit 69de9a7
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
10 changes: 7 additions & 3 deletions notebooks/api/0.8/11-container-images-k8s.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -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)"
]
},
{
Expand Down Expand Up @@ -1394,6 +1393,11 @@
}
],
"metadata": {
"kernelspec": {
"display_name": "syft-3.11",
"language": "python",
"name": "python3"
},
"language_info": {
"codemirror_mode": {
"name": "ipython",
Expand All @@ -1404,7 +1408,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.12.5"
"version": "3.11.5"
}
},
"nbformat": 4,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit 69de9a7

Please sign in to comment.