]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
install.upgrade: deepcopy() overrides before we modify it
authorSage Weil <sage@inktank.com>
Sat, 2 Nov 2013 00:45:52 +0000 (17:45 -0700)
committerSage Weil <sage@inktank.com>
Sat, 2 Nov 2013 01:00:05 +0000 (18:00 -0700)
commit92c57f17f4e05f09790e4788a0581b3830e14421
tree1ecf25c144a33ab0702465d76ef1aa21c1dcd1bc
parent3e72dcb9f478421f004f704d05a2af3ede7f7eec
install.upgrade: deepcopy() overrides before we modify it

Since we modify the dict, make sure it is a deep copy.
Otherwise, a sequence like:

- install.upgrade:
    all:
      branch: dumpling
...
- install.upgrade:
    all: null

will delete the overrides keys in the first upgrade call and
then not have them at all in the second.

Signed-off-by: Sage Weil <sage@inktank.com>
teuthology/task/install.py