diff options
author | Chris Donley <christopher.donley@huawei.com> | 2018-05-30 19:55:33 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@onap.org> | 2018-05-30 19:55:33 +0000 |
commit | e65155cab8d6d74989f1dd0bd1a493e1c91a30d9 (patch) | |
tree | 9112d60bee675751d2bfe0e029929ec8960f49cc /vnftest/common/utils.py | |
parent | bfb67b927b59525028420e4477b1310fb6a69335 (diff) | |
parent | 82aeca18c66dc4c312a57f24ed3c4c33a2063070 (diff) |
Merge "Refactor api definition yamls to support jinja2"
Diffstat (limited to 'vnftest/common/utils.py')
-rw-r--r-- | vnftest/common/utils.py | 7 |
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__ |