Module: check_mk
Branch: master
Commit: 0256bdc7711ecca4d5bccbb95ce0bdffa3dcae01
URL: http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=0256bdc7711ecc…
Author: Mathias Kettner <mk(a)mathias-kettner.de>
Date: Sun Nov 23 14:57:39 2014 +0100
Fix a few comments
---
web/htdocs/valuespec.py | 2 +-
web/htdocs/wato.py | 1 -
web/plugins/views/inventory.py | 2 +-
3 files changed, 2 insertions(+), 3 deletions(-)
diff --git a/web/htdocs/valuespec.py b/web/htdocs/valuespec.py
index 5b62e2d..e090a59 100644
--- a/web/htdocs/valuespec.py
+++ b/web/htdocs/valuespec.py
@@ -1301,7 +1301,7 @@ class CascadingDropdown(ValueSpec):
options.append((str(nr), title))
# Determine the default value for the select, so the
# the dropdown pre-selects the line corresponding with value.
- # Note: the html.select with automatically show the modified
+ # Note: the html.select() with automatically show the modified
# selection, if the HTML variable varprefix_sel aleady
# exists.
if value == val or (
diff --git a/web/htdocs/wato.py b/web/htdocs/wato.py
index fa121bf..5305e9d 100644
--- a/web/htdocs/wato.py
+++ b/web/htdocs/wato.py
@@ -10968,7 +10968,6 @@ def ajax_activation():
log_commit_pending() # flush logfile with pending actions
log_audit(None, "activate-config", _("Configuration activated, monitoring server restarted"))
- # html.message
html.write('OK: ')
html.write('<div class=act_success><img src="images/icon_apply.png" /> %s</div>' %
_("Configuration successfully activated."))
diff --git a/web/plugins/views/inventory.py b/web/plugins/views/inventory.py
index bacfd1d..96c02c1 100644
--- a/web/plugins/views/inventory.py
+++ b/web/plugins/views/inventory.py
@@ -243,7 +243,7 @@ def render_inv_dicttable(hostname, invpath, node):
extratitles.sort()
titles += extratitles
- # We cannot use table here, since html.plug does not work recursively
+ # We cannot use table here, since html.plug() does not work recursively
html.write('<table class=data>')
html.write('<tr>')
for title, key in titles:
Module: check_mk
Branch: master
Commit: 4b31e8e646c3572ab3816450ec12ddd811ef4b43
URL: http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=4b31e8e646c357…
Author: Mathias Kettner <mk(a)mathias-kettner.de>
Date: Fri Nov 21 13:13:06 2014 +0100
Force option -f, --force force using outdated persisted files
---
modules/check_mk.py | 4 ++++
modules/check_mk_base.py | 2 +-
2 files changed, 5 insertions(+), 1 deletion(-)
diff --git a/modules/check_mk.py b/modules/check_mk.py
index 8b1b58a..16af22b 100755
--- a/modules/check_mk.py
+++ b/modules/check_mk.py
@@ -4874,6 +4874,10 @@ NOTES:
of the RRDs has changed. The option --split will activate conversion
from exising RRDs in PNP storage type SINGLE to MULTIPLE.
+ -i, --inventory does a HW/SW-Inventory for all, one or several
+ hosts. If you add the option -f, --force then persisted sections
+ will be used even if they are outdated.
+
""" % (check_mk_configfile,
precompiled_hostchecks_dir,
diff --git a/modules/check_mk_base.py b/modules/check_mk_base.py
index d89e2a1..f03b192 100644
--- a/modules/check_mk_base.py
+++ b/modules/check_mk_base.py
@@ -478,7 +478,7 @@ def add_persisted_info(hostname, info):
now = time.time()
for section, (persisted_until, persisted_section) in persisted.items():
- if now < persisted_until:
+ if now < persisted_until or opt_force:
if section not in info:
info[section] = persisted_section
if opt_debug: