summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2016-09-16 12:00:34 +0100
committerCarl Hetherington <cth@carlh.net>2016-09-16 12:00:34 +0100
commit6bba8058751c56e0241196379dc69648655e7700 (patch)
tree970ac040953bd42db9a9c6968ae248915707a4d9
parent3a60d670804c4ba66a10c36a20c20e2657a8576a (diff)
parent960ce7582d6624c3858593a7511166302f8c923e (diff)
Merge branch 'master' of git.carlh.net:git/cdist
-rwxr-xr-xcdist4
1 files changed, 2 insertions, 2 deletions
diff --git a/cdist b/cdist
index cf42ee7..3aa09a3 100755
--- a/cdist
+++ b/cdist
@@ -121,10 +121,10 @@ class Config:
def get(self, k):
for o in self.options:
if o.key == k:
+ if o.value is None:
+ raise Error('Required setting %s not found' % k)
return o.value
- raise Error('Required setting %s not found' % k)
-
def set(self, k, v):
for o in self.options:
o.offer(k, v)