aboutsummaryrefslogtreecommitdiffstats
path: root/conf/__init__.py
diff options
context:
space:
mode:
authorSridhar Rao <sridhar.rao@spirent.com>2020-11-25 09:10:56 +0000
committerGerrit Code Review <gerrit@opnfv.org>2020-11-25 09:10:56 +0000
commit092de71ff79b23ab05d013ceb417b4f0b48dcc55 (patch)
treea5742662468d6b44217f2aa87fb35fbb43dbbdd2 /conf/__init__.py
parent104d58d57e60f3b7a2866b9b6d48a028a445a00a (diff)
parent9ec3918b56f1e8862fe140455928cdcd87a2554b (diff)
Merge "Openstack: Using VSPERF to Test on Openstack."
Diffstat (limited to 'conf/__init__.py')
-rw-r--r--conf/__init__.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/conf/__init__.py b/conf/__init__.py
index 6dff8360..7f6c1912 100644
--- a/conf/__init__.py
+++ b/conf/__init__.py
@@ -108,6 +108,13 @@ class Settings(object):
raise AttributeError("%r object has no attribute %r" %
(self.__class__, attr))
+ def hasValue(self, attr):
+ """Return true if key exists
+ """
+ if attr in self.__dict__:
+ return True
+ return False
+
def __setattr__(self, name, value):
"""Set a value
"""