kvm.pm: clean up error handling for programmatic control (i.e. MSM)
Client.pm: clean up warnings in logfile git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@4658 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
parent
2b438af097
commit
fc37e3ea2f
@ -168,7 +168,7 @@ sub submit_request {
|
||||
|
||||
#add ESC back
|
||||
foreach my $key (keys %$rsp) {
|
||||
if (ref($rsp->{$key}) eq 'ARRAY') { foreach my $text (@{$rsp->{$key}}) { $text =~ s/xxxxESCxxxx/\e/g; } }
|
||||
if (ref($rsp->{$key}) eq 'ARRAY') { foreach my $text (@{$rsp->{$key}}) { next unless defined $text; $text =~ s/xxxxESCxxxx/\e/g; } }
|
||||
else { $rsp->{$key} =~ s/xxxxESCxxxx/\e/g; }
|
||||
}
|
||||
|
||||
|
@ -1425,6 +1425,7 @@ sub dohyp {
|
||||
$output{node}->[0]->{errorcode} = $rc;
|
||||
$output{node}->[0]->{name}->[0]=$node;
|
||||
$output{node}->[0]->{data}->[0]->{contents}->[0]=$text;
|
||||
$output{node}->[0]->{error} = $text unless $rc == 0;
|
||||
print $out freeze([\%output]);
|
||||
print $out "\nENDOFFREEZE6sK4ci\n";
|
||||
yield();
|
||||
|
Loading…
Reference in New Issue
Block a user