Skip to content

Commit c2b2935

Browse files
authored
Improve API compatibility with latest NanoKVM version (#3)
* fix: API returns list of IPs The current API seems to return a list of IPInfo objects. * fix: swap state is nullable
1 parent d195dcf commit c2b2935

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

nanokvm/models.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ class IPInfo(BaseModel):
137137

138138

139139
class GetInfoRsp(BaseModel):
140-
ip: str
140+
ips: list[IPInfo]
141141
mdns: str
142142
image: str
143143
application: str
@@ -200,7 +200,7 @@ class GetSSHStateRsp(BaseModel):
200200

201201

202202
class GetSwapStateRsp(BaseModel):
203-
enabled: bool
203+
enabled: bool | None = None
204204

205205

206206
class GetMdnsStateRsp(BaseModel):

0 commit comments

Comments
 (0)