From 1dc4df9e61c1db122fbcd8c4881f5389249adfd0 Mon Sep 17 00:00:00 2001 From: zhaoertao Date: Wed, 13 Jun 2012 06:50:59 +0000 Subject: [PATCH] fix bug 3534769: NGP->rspconfig passwd can not work git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.7@13073 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- xCAT-server/lib/xcat/plugins/blade.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/xCAT-server/lib/xcat/plugins/blade.pm b/xCAT-server/lib/xcat/plugins/blade.pm index 0dfab10eb..54c661ed9 100644 --- a/xCAT-server/lib/xcat/plugins/blade.pm +++ b/xCAT-server/lib/xcat/plugins/blade.pm @@ -4073,11 +4073,11 @@ sub clicmds { } my $Rc=1; if ($t and not $t->atprompt) { #we sshed in, but we may be forced to deal with initial password set + my $output = $t->get(); + if ($output =~ /Enter current password/) { if (defined($handled{USERID})) { $promote_pass = $handled{USERID}; } - my $output = $t->get(); - if ($output =~ /Enter current password/) { $t->print($currpass); $t->waitfor(-match=>"/password:/i"); $t->print($promote_pass);