Skip to content

Commit 3f56bc3

Browse files
committed
fix(sdk): marked roofs_hash optional since it not returns from API anymore.
1 parent 0da9839 commit 3f56bc3

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

sdk/js/src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ export interface TcbInfo {
4949
}
5050

5151
export type TcbInfoV03x = TcbInfo & {
52-
rootfs_hash: string
52+
rootfs_hash?: string
5353
}
5454

5555
export type TcbInfoV05x = TcbInfo & {

sdk/python/src/dstack_sdk/dstack_client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,7 @@ class TcbInfo(BaseModel):
173173
class TcbInfoV03x(TcbInfo):
174174
"""TCB information for dstack OS version 0.3.x."""
175175

176-
rootfs_hash: str
176+
rootfs_hash: Optional[str] = None
177177

178178

179179
class TcbInfoV05x(TcbInfo):

0 commit comments

Comments
 (0)