Revert "cli: manager, tape, debug: setup auth context to make local connect work"
This reverts commit6bac67195e
and commit783e88c2df
as they were both superseded by569324cb
("provide separate helpers for pub/priv auth keyring access").
This commit is contained in:
parent
569324cb95
commit
bd8e8991d3
@ -23,11 +23,6 @@ fn main() {
|
||||
let mut rpcenv = CliEnvironment::new();
|
||||
rpcenv.set_auth_id(Some(format!("{}@pam", username)));
|
||||
|
||||
let args: Vec<String> = std::env::args().take(2).collect();
|
||||
if args.len() < 2 || args[1] != "printdoc" {
|
||||
proxmox_backup::auth_helpers::setup_auth_context(true);
|
||||
}
|
||||
|
||||
run_cli_command(
|
||||
cmd_def,
|
||||
rpcenv,
|
||||
|
@ -490,10 +490,6 @@ async fn run() -> Result<(), Error> {
|
||||
let mut rpcenv = CliEnvironment::new();
|
||||
rpcenv.set_auth_id(Some(String::from("root@pam")));
|
||||
|
||||
if args.len() < 2 || args[1] != "printdoc" {
|
||||
proxmox_backup::auth_helpers::setup_auth_context(true);
|
||||
}
|
||||
|
||||
run_async_cli_command(cmd_def, rpcenv).await; // this call exit(-1) on error
|
||||
|
||||
Ok(())
|
||||
|
@ -1113,10 +1113,5 @@ fn main() {
|
||||
let mut rpcenv = CliEnvironment::new();
|
||||
rpcenv.set_auth_id(Some(String::from("root@pam")));
|
||||
|
||||
let args: Vec<String> = std::env::args().take(2).collect();
|
||||
if args.len() < 2 || args[1] != "printdoc" {
|
||||
proxmox_backup::auth_helpers::setup_auth_context(true);
|
||||
}
|
||||
|
||||
proxmox_async::runtime::main(run_async_cli_command(cmd_def, rpcenv));
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user