-
Notifications
You must be signed in to change notification settings - Fork 474
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
17213 FIX oracle_sql: Fix ValueError: could not convert string to flo…
…at: '' SUP-21227 Change-Id: I1f087eb3b63bf001429d519637d3991cecad33e4
- Loading branch information
1 parent
56031d8
commit bf972e5
Showing
3 changed files
with
63 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
[//]: # (werk v2) | ||
# oracle_sql: Fix ValueError: could not convert string to float: '' | ||
|
||
key | value | ||
---------- | --- | ||
date | 2024-11-12T13:55:24+00:00 | ||
version | 2.3.0p21 | ||
class | fix | ||
edition | cre | ||
component | checks | ||
level | 1 | ||
compatible | yes | ||
|
||
The agent plugin `mk_oracle` reports `elapsed:' for the elapsed time, if the `perl` or `bc` call fail. | ||
In the past, the plugin `oracle_sql` crashes with | ||
``` | ||
elif key == "elapsed": | ||
instance.elapsed = float(line[1]) | ||
ValueError: could not convert string to float: '' | ||
``` | ||
With this Werk, the crash is fixed. The missing metric `elapsed_time` will be omitted. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters