[pve-devel] [PATCH common 4/4] Use run_cli_handler instead of deprecated run_cli

Philip Abernethy p.abernethy at proxmox.com
Mon Oct 16 10:59:26 CEST 2017


---
 src/PVE/CLIHandler.pm | 11 -----------
 1 file changed, 11 deletions(-)

diff --git a/src/PVE/CLIHandler.pm b/src/PVE/CLIHandler.pm
index e61fa6a..77c71a4 100644
--- a/src/PVE/CLIHandler.pm
+++ b/src/PVE/CLIHandler.pm
@@ -472,17 +472,6 @@ my $handle_simple_cmd = sub {
     &$outsub($res) if $outsub;
 };
 
-sub run_cli {
-    my ($class, $pwcallback, $podfn, $preparefunc) = @_;
-
-    # 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 {
     my ($class, %params) = @_;
 
-- 
2.11.0





More information about the pve-devel mailing list