diff --git a/f5/utils/iapp_parser.py b/f5/utils/iapp_parser.py index 031b4bf45..66ba8a59f 100644 --- a/f5/utils/iapp_parser.py +++ b/f5/utils/iapp_parser.py @@ -120,10 +120,10 @@ def _get_section_end_index(self, section, section_start): elif char == '}' and not in_quote: brace_count -= 1 - if brace_count is 0: + if brace_count == 0: return index + section_start - if brace_count is not 0: + if brace_count != 0: raise CurlyBraceMismatchException( 'Curly braces mismatch in section %s.' % section )