Module: check_mk
Branch: master
Commit: 85a4aa5569d085286e794f14d6070fb4db8ee600
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=85a4aa5569d085…
Author: Lars Michelsen <lm(a)mathias-kettner.de>
Date: Fri Nov 27 15:04:47 2015 +0100
ps: minor variable name consolidation
---
checks/ps.include | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/checks/ps.include b/checks/ps.include
index aa91d03..5ebc422 100644
--- a/checks/ps.include
+++ b/checks/ps.include
@@ -81,16 +81,16 @@ def ps_get_inventory_specs(invdata, invrules):
return inventory_specs
-def inventory_ps_common(invdata, invrules, info):
+def inventory_ps_common(invdata, invrules, parsed):
inventory_specs = ps_get_inventory_specs(invdata, invrules)
inventory = []
for servicedesc, pattern, userspec, icon, default_params in inventory_specs:
num_perc_s = servicedesc.count("%s")
- for line in info:
+ for line in parsed:
# First entry in line is the node name or None for non-clusters
- ps = line[1:]
- matches, grabbed_user = process_matches_for_discovery(ps, pattern, userspec)
+ process_line = line[1:]
+ matches, grabbed_user = process_matches_for_discovery(process_line, pattern,
userspec)
if matches == False:
continue # skip not matched lines