fix --assign
This commit is contained in:
parent
544cb203ea
commit
71996c9509
@ -359,10 +359,15 @@ pub fn core_main() -> Option<Vec<String>> {
|
|||||||
body["strategy_name"] = serde_json::json!(name);
|
body["strategy_name"] = serde_json::json!(name);
|
||||||
}
|
}
|
||||||
let url = crate::ui_interface::get_api_server() + "/api/devices/cli";
|
let url = crate::ui_interface::get_api_server() + "/api/devices/cli";
|
||||||
if let Err(err) = crate::post_request_sync(url, body.to_string(), &header) {
|
match crate::post_request_sync(url, body.to_string(), &header) {
|
||||||
println!("{}", err);
|
Err(err) => println!("{}", err),
|
||||||
} else {
|
Ok(text) => {
|
||||||
|
if text.is_empty() {
|
||||||
println!("Done!");
|
println!("Done!");
|
||||||
|
} else {
|
||||||
|
println!("{}", text);
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user