diff options
author | Joel Diaz <jdiaz@redhat.com> | 2017-02-28 17:33:18 +0000 |
---|---|---|
committer | Joel Diaz <jdiaz@redhat.com> | 2017-02-28 17:33:18 +0000 |
commit | 0d9ce34564d72520407cb1dba9a785e2faec49b9 (patch) | |
tree | dddd3e8c797ad3b7fccb53cc36abea0cd0b3fb16 /playbooks/common/openshift-node | |
parent | bfe7e99d9a09f06f021f73dfd2631e28dc3983b0 (diff) | |
download | openshift-0d9ce34564d72520407cb1dba9a785e2faec49b9.tar.gz openshift-0d9ce34564d72520407cb1dba9a785e2faec49b9.tar.bz2 openshift-0d9ce34564d72520407cb1dba9a785e2faec49b9.tar.xz openshift-0d9ce34564d72520407cb1dba9a785e2faec49b9.zip |
raise exceptions when walking through object path
if we're given path a.b.c and the existing object is:
a:
b:
- item1
raise an exception due to unexpected objects found while traversing the path (ie. b is a list, not a dict)
also, add_entry assumes new dicts for each sub element when creating elements besides the final assignment value.
doing something like a.b.c[0] = 12 where 'c' doesn't exist raises an exception
add test cases to cover:
access path that differs from existing object
create new objects with an embedded list in the path
create new object with a list at the end (define the end list in the passed in 'value' to avoid this exception)
Diffstat (limited to 'playbooks/common/openshift-node')
0 files changed, 0 insertions, 0 deletions