defect 3289489: fix the issue that syncfile went wrong when have not syncfile entry in the policy table
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@9363 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
parent
701df5cdf5
commit
21c92e3076
@ -36,16 +36,18 @@ while (<$remote>) {
|
||||
$response .= $_;
|
||||
if ($response =~ m/<\/xcatresponse>/) {
|
||||
$rsp = eval { XMLin($response,SuppressEmpty=>undef,ForceArray=>1) };
|
||||
if ($rsp->{serverdone}) {
|
||||
close $remote;
|
||||
exit $rc;
|
||||
}
|
||||
|
||||
if ($rsp->{errorcode}) {
|
||||
$rc = $rsp->{errorcode}[0];
|
||||
} elsif ($rsp->{error}) {
|
||||
$rc = $rsp->{error}[0];
|
||||
}
|
||||
if ($rsp->{serverdone}) {
|
||||
close $remote;
|
||||
if ($rc) { $rc = 1; }
|
||||
exit $rc;
|
||||
}
|
||||
|
||||
$response='';
|
||||
}
|
||||
}
|
||||
|
@ -1,7 +1,7 @@
|
||||
#!/usr/bin/awk -f
|
||||
BEGIN {
|
||||
if (ENVIRON["USEOPENSSLFORXCAT"]) {
|
||||
server = "openssl s_client -quiet -connect " ENVIRON["XCATSERVER"] " 2> /dev/null"
|
||||
server = "openssl s_client -connect " ENVIRON["XCATSERVER"] " 2> /dev/null"
|
||||
} else {
|
||||
server = "/inet/tcp/0/127.0.0.1/400"
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user