Forum Discussion
Jim_Gore_43214
Nimbostratus
Oct 03, 2006LocalLB.ProfileStream.set_target_string ??
Hello,
I have the following perl subroutine that I am testing to set the target in a stream profile:
sub setTarget()
{
push (@profileName, "ocm_reject_stream"); ...
Oct 03, 2006
Ahh, another perl boolean question. I'll have to put a tech tip up for this one.
Perl (or SOAP::Lite) doesn't know how to convert the string "FALSE" to it's boolean equivalent. For some reason it always passes "true" no matter what you pass in. You can verify this with the SOAP::Lite debugging enabled
The server code converts the string to a number and defaults to 1 which is true for the default_flag. Since the server thinks the default flag is 1, it ignores the value passed in and sets it to blank.
The simple fix is to replace the "FALSE" assignment with a "0" and you should be set.
...
$newTarget =
{
value => $targetValue,
default_flag => 0
};
-Joe
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)Recent Discussions
Related Content
DevCentral Quicklinks
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com
Discover DevCentral Connects
