]> git.proxmox.com Git - pve-client.git/blobdiff - PVE/APIClient/Commands/remote.pm
correctly use PVE::APIClient::PTY
[pve-client.git] / PVE / APIClient / Commands / remote.pm
index 8deac33dc61849c4cc42e707ae30a40780086e8a..090672ee2cd1bca6bc53bbcee815e7a9f7893cba 100644 (file)
@@ -15,7 +15,7 @@ use PVE::APIClient::PTY;
 use base qw(PVE::APIClient::CLIHandler);
 
 sub read_password {
-   return PVE::PTY::read_password("Remote password: ")
+   return PVE::APIClient::PTY::read_password("Remote password: ")
 }
 
 __PACKAGE__->register_method ({
@@ -64,7 +64,7 @@ __PACKAGE__->register_method ({
 
        my $password = $param->{password};
        if (!defined($password)) {
-           $password = PVE::PTY::read_password("Remote password: ");
+           $password = PVE::APIClient::PTY::read_password("Remote password: ");
        }
 
        my $setup = {