I found a bug causing template functions to strip one character
immediately following the template function string, e.g.
"{ip(load-balancer,pub1)}:80"
will result in stripping the colon:
192.168.210.580
instead of
192.168.210.5:80
This patch fixes that.
Signed-off-by: Jan Tluka <jtluka(a)redhat.com>
---
lnst/Common/XmlTemplates.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/lnst/Common/XmlTemplates.py b/lnst/Common/XmlTemplates.py
index daa1254..57acf00 100644
--- a/lnst/Common/XmlTemplates.py
+++ b/lnst/Common/XmlTemplates.py
@@ -320,7 +320,7 @@ class XmlTemplates:
func_match = re.search(self._func_re, string)
if func_match:
prefix = string[0:func_match.start(0)]
- suffix = string[func_match.end(0)+1:]
+ suffix = string[func_match.end(0):]
template = func_match.group(0)
func = self._process_func_template(template)
--
1.8.1.4
_______________________________________________
LNST-developers mailing list
LNST-developers(a)lists.fedorahosted.org
https://lists.fedorahosted.org/mailman/listinfo/lnst-developers