Skip to content

Commit 750ac08

Browse files
vmm: InstaceStart returns Status Code 204 now
This request does not return a body. Also, in the swagger we defined the expected response in case of success to be 204. Signed-off-by: Andreea Florescu <[email protected]>
1 parent 4434d33 commit 750ac08

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

vmm/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1231,7 +1231,7 @@ impl Vmm {
12311231

12321232
match self.start_instance() {
12331233
Ok(_) => sender
1234-
.send(Box::new(SyncOkStatus::Ok))
1234+
.send(Box::new(SyncOkStatus::NoContent))
12351235
.map_err(|_| ())
12361236
.expect("one-shot channel closed"),
12371237
Err(_) => sender

0 commit comments

Comments
 (0)