Module: check_mk
Branch: master
Commit: 5400d24d673207e356d46aadbf563e0b2b278440
URL: http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=5400d24d673207…
Author: Lars Michelsen <lm(a)mathias-kettner.de>
Date: Wed Feb 17 11:43:11 2016 +0100
inventory views: Fixed error handling in case of invalid inventory paths
---
web/htdocs/inventory.py | 1 +
1 file changed, 1 insertion(+)
diff --git a/web/htdocs/inventory.py b/web/htdocs/inventory.py
index b50da71..595ff5a 100644
--- a/web/htdocs/inventory.py
+++ b/web/htdocs/inventory.py
@@ -25,6 +25,7 @@
# Boston, MA 02110-1301 USA.
import defaults, re, os
+from lib import MKGeneralException
# Load data of a host, cache it in the current HTTP request
def host(hostname):
Module: check_mk
Branch: master
Commit: a027f1933e898f8cb94e55e4b44f8cf2c2305f73
URL: http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=a027f1933e898f…
Author: Lars Michelsen <lm(a)mathias-kettner.de>
Date: Wed Feb 17 11:20:09 2016 +0100
HTTPUrl valuespec: Fixed exception in rendering of value
---
web/htdocs/valuespec.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/web/htdocs/valuespec.py b/web/htdocs/valuespec.py
index 451a918..063cd10 100644
--- a/web/htdocs/valuespec.py
+++ b/web/htdocs/valuespec.py
@@ -646,7 +646,7 @@ class HTTPUrl(TextAscii):
return value
def value_to_text(self, url):
- if not url.startswith("http://") and not value.startswith("https://"):
+ if not url.startswith("http://") and not url.startswith("https://"):
url = "http://" + url
try:
parts = urlparse.urlparse(url)