]> git.proxmox.com Git - pve-cluster.git/commitdiff
pvecm: fix weirdly spaced double-prompt for password on join
authorStefan Reiter <s.reiter@proxmox.com>
Tue, 19 Nov 2019 09:28:27 +0000 (10:28 +0100)
committerFabian Grünbichler <f.gruenbichler@proxmox.com>
Fri, 22 Nov 2019 08:12:23 +0000 (09:12 +0100)
Not only did it display two prompts with identical meaning, the second
was indented to the end of the first in my terminal for some reason.

Signed-off-by: Stefan Reiter <s.reiter@proxmox.com>
data/PVE/CLI/pvecm.pm

index d3fde3c427d8128efd761b3e05fc36165e5b29c3..c13d0e758b3670a0d2614e5f5dc6564d85042b6b 100755 (executable)
@@ -365,8 +365,7 @@ __PACKAGE__->register_method ({
        my $worker = sub {
 
            if (!$param->{use_ssh}) {
-               print "Please enter superuser (root) password for '$host':\n";
-               my $password = PVE::PTY::read_password("Password for root\@$host: ");
+               my $password = PVE::PTY::read_password("Please enter superuser (root) password for '$host': ");
 
                delete $param->{use_ssh};
                $param->{password} = $password;