use new proxmox::tools::nodename
This commit is contained in:
@ -343,7 +343,7 @@ pub fn handle_async_api_request<Env: RpcEnvironment>(
|
||||
|
||||
fn get_index(username: Option<String>, token: Option<String>) -> Response<Body> {
|
||||
|
||||
let nodename = tools::nodename();
|
||||
let nodename = proxmox::tools::nodename();
|
||||
let username = username.unwrap_or(String::from(""));
|
||||
|
||||
let token = token.unwrap_or(String::from(""));
|
||||
|
@ -5,8 +5,6 @@ use chrono::Local;
|
||||
|
||||
use std::sync::atomic::{AtomicUsize, Ordering};
|
||||
|
||||
use crate::tools;
|
||||
|
||||
/// Unique Process/Task Identifier
|
||||
///
|
||||
/// We use this to uniquely identify worker task. UPIDs have a short
|
||||
@ -68,7 +66,7 @@ impl UPID {
|
||||
worker_type: worker_type.to_owned(),
|
||||
worker_id,
|
||||
username: username.to_owned(),
|
||||
node: tools::nodename().to_owned(),
|
||||
node: proxmox::tools::nodename().to_owned(),
|
||||
})
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user