Commit 19582197 authored by Mike Hibler's avatar Mike Hibler

Fix obscure elabinelab newnode problem where MAC address was being typed

as a double by the RPC::XML library.
parent b4f443e7
......@@ -320,8 +320,16 @@ NODE: foreach my $node_id (@node_ids) {
"cert" => $RPCCERT,
"portnum" => $RPCPORT});
#
# XXX force MAC to a string since simple XML parser may otherwise
# think it is an int (i.e., all digits) or even a double (i.e.,
# all digits with an 'e' in the middle). Don't laugh, I spent a
# lot of time figuring this out when it really happened!
#
my $macstr = RPC::XML::string->new($interfaces{0}[0]);
my $rval = libxmlrpc::CallMethod("elabinelab", "newnode_info",
{"mac" => $interfaces{0}[0]});
{"mac" => $macstr});
if (!defined($rval)) {
print "XMPRPC server did not return control iface info!\n";
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment