Skip to content

Commit

Permalink
Fix value extraction bug in oracle
Browse files Browse the repository at this point in the history
  • Loading branch information
TZ-zzz committed Feb 14, 2025
1 parent 06b5d62 commit 14e4695
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions data/strimzi-kafka-operator/v0-45-0/oracle.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,8 +64,10 @@ def check(
if line.strip() != "":
config = line.strip().split(" ")[0]
[name, value] = config.split("=")
if value == "true" or value == "false":
value = bool(value)
if value == "true":
value = True
elif value == "false":
value = False
elif re.match(r"^\d+$", value) or re.match(r"^\d+\.\d+$", value):
value = float(value)
runtime_config[name] = value
Expand Down

0 comments on commit 14e4695

Please sign in to comment.