projects
/
pve-common.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
2289890
)
re-enable run_cli, which is still in use
author
Dietmar Maurer
<dietmar@proxmox.com>
Thu, 12 May 2016 05:43:49 +0000
(07:43 +0200)
committer
Dietmar Maurer
<dietmar@proxmox.com>
Thu, 12 May 2016 05:46:30 +0000
(07:46 +0200)
src/PVE/CLIHandler.pm
patch
|
blob
|
blame
|
history
diff --git
a/src/PVE/CLIHandler.pm
b/src/PVE/CLIHandler.pm
index 0e7f20250639850af968cc50efa990ea4188a350..c448a80ef7828cb2f00f4961bce7c0fcd75cc211 100644
(file)
--- a/
src/PVE/CLIHandler.pm
+++ b/
src/PVE/CLIHandler.pm
@@
-450,7
+450,12
@@
my $handle_simple_cmd = sub {
sub run_cli {
my ($class, $pwcallback, $podfn, $preparefunc) = @_;
- die "depreciated function run_cli - use run_cli_handler instead";
+ # Note: "depreciated function run_cli - use run_cli_handler instead";
+ # silently ignore $podfn , which is no longer supported.
+
+ die "password callback is no longer supported" if $pwcallback;
+
+ run_cli_handler($class, prepare => $preparefunc);
}
sub run_cli_handler {