Skip to content

Commit

Permalink
7783 FIX db2_bp_hitratios: Fixed parsing instances in DPF mode: 'KeyE…
Browse files Browse the repository at this point in the history
…rror: None'; only gather real instances

Change-Id: I5202205760f88e189e15bf8c081595d5b34c2325
  • Loading branch information
si-23 committed Jun 13, 2019
1 parent ff90d8d commit b49bb16
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 2 deletions.
11 changes: 11 additions & 0 deletions .werks/7783
@@ -0,0 +1,11 @@
Title: db2_bp_hitratios: Fixed parsing instances in DPF mode: 'KeyError: None'; only gather real instances
Level: 1
Component: checks
Class: fix
Compatible: compat
Edition: cre
State: unknown
Version: 1.5.0p18
Date: 1560320495


5 changes: 3 additions & 2 deletions checks/db2_bp_hitratios
Expand Up @@ -56,8 +56,9 @@ def parse_db2_bp_hitratios(info):
if line[0] == "IBMDEFAULTBP":
current_node_offset += 1
current_instance = "%s DPF %s" % (instance, node_names[current_node_offset])
databases.setdefault(current_instance, [ node_headers ])
databases[current_instance].append(line)
databases.setdefault(current_instance, [node_headers])
if current_instance in databases:
databases[current_instance].append(line)
else:
databases[instance] = lines

Expand Down

0 comments on commit b49bb16

Please sign in to comment.