api/compat: drop more compat imports from api_schema.rs

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
This commit is contained in:
Wolfgang Bumiller
2019-11-21 14:36:28 +01:00
parent cc4ecf80b0
commit a2479cfa1a
21 changed files with 67 additions and 77 deletions

View File

@ -1,22 +1,19 @@
use std::sync::{Arc, Mutex};
use failure::*;
use lazy_static::lazy_static;
use openssl::sha;
use regex::Regex;
use serde_json::{json, Value};
use proxmox::{sortable, identity};
use proxmox::api::{ApiHandler, ApiMethod, Router, RpcEnvironment};
use proxmox::api::schema::*;
use proxmox::tools::fs::{file_get_contents, file_set_contents};
use proxmox::tools::*; // required to use IPRE!() macro ???
use crate::api2::*;
use crate::api_schema::*;
//use crate::api_schema::router::*;
use crate::api2::types::*;
use lazy_static::lazy_static;
use std::sync::{Arc, Mutex};
use openssl::sha;
use regex::Regex;
use serde_json::{json, Value};
static RESOLV_CONF_FN: &str = "/etc/resolv.conf";
fn read_etc_resolv_conf() -> Result<Value, Error> {