summaryrefslogtreecommitdiff
path: root/ybd/pots.py
diff options
context:
space:
mode:
Diffstat (limited to 'ybd/pots.py')
-rw-r--r--ybd/pots.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/ybd/pots.py b/ybd/pots.py
index 5658203..2d3dcbf 100644
--- a/ybd/pots.py
+++ b/ybd/pots.py
@@ -38,7 +38,6 @@ class Pots(object):
self._trees = {}
self._set_trees()
self.defaults = Defaults()
- self._save_pots('./definitions.yml')
def get(self, dn):
''' Return a definition from the dictionary.
@@ -48,7 +47,9 @@ class Pots(object):
value in the given dict. '''
if type(dn) is str:
- return self._data.get(dn)
+ if self._data.get(dn):
+ return self._data.get(dn)
+ log(dn, 'Unable to find definition for', dn, exit=True)
return self._data.get(dn.get('path', dn.keys()[0]))