use new proxmox::tools::nodename

This commit is contained in:
Dietmar Maurer
2019-08-03 17:06:23 +02:00
parent 7f66c29e5c
commit f69adc81a6
5 changed files with 5 additions and 25 deletions

View File

@ -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(""));

View File

@ -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(),
})
}