mirror of
https://git.proxmox.com/git/proxmox
synced 2025-08-09 07:46:17 +00:00
cleanup schema function calls
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
This commit is contained in:
parent
e207a84d93
commit
cb32acc703
@ -8,8 +8,7 @@ use serde_json::json;
|
|||||||
|
|
||||||
use proxmox_router::RpcEnvironment;
|
use proxmox_router::RpcEnvironment;
|
||||||
use proxmox_router::cli::{run_cli_command, complete_file_name, CliCommand, CliCommandMap, CliEnvironment};
|
use proxmox_router::cli::{run_cli_command, complete_file_name, CliCommand, CliCommandMap, CliEnvironment};
|
||||||
use proxmox_schema::{api, parse_property_string};
|
use proxmox_schema::{api, ApiStringFormat, ApiType, IntegerSchema, Schema, StringSchema};
|
||||||
use proxmox_schema::{ApiStringFormat, ApiType, IntegerSchema, Schema, StringSchema};
|
|
||||||
|
|
||||||
use proxmox_sys::fs::CreateOptions;
|
use proxmox_sys::fs::CreateOptions;
|
||||||
|
|
||||||
@ -262,7 +261,7 @@ pub fn create_rrd(
|
|||||||
|
|
||||||
for item in rra.iter() {
|
for item in rra.iter() {
|
||||||
let rra: RRAConfig = serde_json::from_value(
|
let rra: RRAConfig = serde_json::from_value(
|
||||||
parse_property_string(item, &RRAConfig::API_SCHEMA)?
|
RRAConfig::API_SCHEMA.parse_property_string(item)?
|
||||||
)?;
|
)?;
|
||||||
println!("GOT {:?}", rra);
|
println!("GOT {:?}", rra);
|
||||||
rra_list.push(RRA::new(rra.cf, rra.r, rra.n as usize));
|
rra_list.push(RRA::new(rra.cf, rra.r, rra.n as usize));
|
||||||
|
Loading…
Reference in New Issue
Block a user