summaryrefslogtreecommitdiffstats
path: root/vnftest/common/utils.py
diff options
context:
space:
mode:
authorChris Donley <christopher.donley@huawei.com>2018-05-30 19:55:33 +0000
committerGerrit Code Review <gerrit@onap.org>2018-05-30 19:55:33 +0000
commite65155cab8d6d74989f1dd0bd1a493e1c91a30d9 (patch)
tree9112d60bee675751d2bfe0e029929ec8960f49cc /vnftest/common/utils.py
parentbfb67b927b59525028420e4477b1310fb6a69335 (diff)
parent82aeca18c66dc4c312a57f24ed3c4c33a2063070 (diff)
Merge "Refactor api definition yamls to support jinja2"
Diffstat (limited to 'vnftest/common/utils.py')
-rw-r--r--vnftest/common/utils.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/vnftest/common/utils.py b/vnftest/common/utils.py
index fbc8391..ad1b2f3 100644
--- a/vnftest/common/utils.py
+++ b/vnftest/common/utils.py
@@ -424,3 +424,10 @@ def open_relative_file(path, task_path):
if e.errno == errno.ENOENT:
return open(os.path.join(task_path, path))
raise
+
+
+class dotdict(dict):
+ """dot.notation access to dictionary attributes"""
+ __getattr__ = dict.get
+ __setattr__ = dict.__setitem__
+ __delattr__ = dict.__delitem__