Merge branch 'dennisvd/noescape' into 'master'
Do not try to escape the key string as this will not work with colons.
This minimal change will make sure that reclass won't crash if colons are used as part of a key.
See merge request !1
diff --git a/reclass/utils/dictpath.py b/reclass/utils/dictpath.py
index f5c4e36..0d23c96 100644
--- a/reclass/utils/dictpath.py
+++ b/reclass/utils/dictpath.py
@@ -122,10 +122,7 @@
return []
def new_subpath(self, key):
- try:
- return DictPath(self._delim, self._parts + [self._escape_string(key)])
- except AttributeError as e:
- return DictPath(self._delim, self._parts + [key])
+ return DictPath(self._delim, self._parts + [key])
def get_value(self, base):
return self._get_innermost_container(base)[self._get_key()]