f5-automation-config-converter icon indicating copy to clipboard operation
f5-automation-config-converter copied to clipboard

Update parser.js

Open zdrouse opened this issue 1 year ago • 1 comments

sometimes nested objects in the config file are not indented and this causes the parser to break because the while loop doesn't exit and we reach the end of the object with no closing bracket detected.

the behavior can be observed in issue 99: https://github.com/f5devcentral/f5-automation-config-converter/issues/99

I've only tested this with ucs argument and my conversion was able to complete successfully afterwards. I am not too certain if this change would impact anything else.

zdrouse avatar Feb 07 '24 19:02 zdrouse

#99 might be a different issue than what I was facing actually

when HTTP_REQUEST {

if { [active_members [LB::server pool]] == 0 } {
        HTTP::respond 200 content $static::html
}
}

zdrouse avatar Feb 07 '24 20:02 zdrouse