fix the issue that POST - /networks does not work. and fix the ssl connection failure on ubuntu

This commit is contained in:
WangXiaoPeng 2015-03-26 06:21:26 -04:00
parent f02a5e927d
commit 21204f4dde

View File

@ -728,6 +728,7 @@ my %URIdef = (
example => "|Create the networks resources base on the network configuration on xCAT MN.|POST|/networks||",
cmd => "makenetworks",
fhandler => \&actionhdl,
outhdler => \&noout,
},
},
network_allattr => {
@ -2674,6 +2675,7 @@ sub sendRequest {
else {
$client = IO::Socket::SSL->new(
PeerAddr => $xcatHost,
SSL_verify_mode => 0,
Timeout => 15,);
}
unless ($client) {