mahnsc
Nov 17, 2014Nimbostratus
Problem with get_address() method
I'm having trouble figuring out how to get get_address() to return something other than an error and I'm assuming I'm doing something wrong but haven't had any luck figuring out what that is. The relevant code in Perl:
my $request = SOAP::Lite
-> uri('urn:iControl:LocalLB/NodeAddressV2')
-> proxy("https://$bigip:$port/iControl/iControlPortal.cgi");
my $nodelist = $request->get_list();
my $nodeiplist = $request->get_address($nodelist);
$request->get_list() returns the expected result but $request->get_address($nodelist) returns the following errors in SOAP::Lite:
Argument "https://bigip_ip_address:port/iControl/iControlPortal.cgi" isn't numeric in sprintf at /path/to/perl/lib/SOAP/Lite.pm line 1033.
Line 1033 in SOAP::Lite is:
sub gen_id { sprintf "%U", $_[1] }
Can anyone tell me what I'm probably doing wrong with my get_address() method call?