From 515baf29e790c4b95aa6587675f2367757bcad63 Mon Sep 17 00:00:00 2001 From: sjing Date: Tue, 15 Jan 2013 06:11:21 +0000 Subject: [PATCH] fix for bug 2832 git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14882 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- perl-xCAT/xCAT/PPCenergy.pm | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/perl-xCAT/xCAT/PPCenergy.pm b/perl-xCAT/xCAT/PPCenergy.pm index b56fc9c58..cf6b5d755 100644 --- a/perl-xCAT/xCAT/PPCenergy.pm +++ b/perl-xCAT/xCAT/PPCenergy.pm @@ -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