summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--python/vyos/xml/definition.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/python/vyos/xml/definition.py b/python/vyos/xml/definition.py
index 5421007e0..b0339b228 100644
--- a/python/vyos/xml/definition.py
+++ b/python/vyos/xml/definition.py
@@ -248,7 +248,7 @@ class XML(dict):
def defaults(self, lpath, flat):
d = self[kw.default]
for k in lpath:
- d = d[k]
+ d = d.get(k, {})
if not flat:
r = {}