src/api2/admin/datastore/backup.rs: add required parameters, cleanups

This commit is contained in:
Dietmar Maurer
2019-05-08 13:17:23 +02:00
parent d95ced64ad
commit 0aadd40b4f
2 changed files with 23 additions and 21 deletions

View File

@ -50,7 +50,7 @@ fn run() -> Result<(), Error> {
let mut client = HttpClient::new(host, username)?;
let h2client = client.h2upgrade("/api2/json/admin/datastore/store2/backup");
let h2client = client.h2upgrade("/api2/json/admin/datastore/store2/backup?backup-type=host&backup-id=test");
let res = h2client.and_then(|mut h2| {
println!("start http2");