fix for bug 2832
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14882 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
parent
c01a6918f7
commit
515baf29e7
@ -377,17 +377,23 @@ sub renergy {
|
||||
# Generate the url path for CIM communication
|
||||
chomp($hcp);
|
||||
my $url_path = "https://"."$user".":"."$password"."\@"."$hcp".":5989";
|
||||
|
||||
# Not display password in command outupt.
|
||||
my $display_url_path = "https://"."$user".":"."xxxxxx"."\@"."$hcp".":5989";
|
||||
|
||||
# Execute the request
|
||||
my $cmd = "";
|
||||
my $display_cmd = "";
|
||||
if ($opt->{'set'}) {
|
||||
$cmd = "$::CIM_CLIENT_PATH $verb_arg -u $url_path -n $cec_name -o $opt->{'set'}";
|
||||
$display_cmd = "$::CIM_CLIENT_PATH $verb_arg -u $display_url_path -n $cec_name -o $opt->{'set'}";
|
||||
} elsif ($opt->{'query'}) {
|
||||
$cmd = "$::CIM_CLIENT_PATH $verb_arg -u $url_path -n $cec_name -o $opt->{'query'}";
|
||||
$display_cmd = "$::CIM_CLIENT_PATH $verb_arg -u $display_url_path -n $cec_name -o $opt->{'query'}";
|
||||
}
|
||||
|
||||
if ($verbose) {
|
||||
push @noerr_msg, [$node, "Run following command: $cmd", 0];
|
||||
push @noerr_msg, [$node, "Run following command: $display_cmd", 0];
|
||||
}
|
||||
|
||||
# Disable the CHID signal before run the command. Otherwise the
|
||||
|
Loading…
Reference in New Issue
Block a user