From b7ef63ab0a93014ab12a91f65fe565ab68201b0e Mon Sep 17 00:00:00 2001 From: Dietmar Maurer Date: Thu, 12 May 2016 07:43:49 +0200 Subject: [PATCH] re-enable run_cli, which is still in use --- src/PVE/CLIHandler.pm | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/PVE/CLIHandler.pm b/src/PVE/CLIHandler.pm index 0e7f202..c448a80 100644 --- 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 { -- 2.39.2