saltstack/salt — pull request #16264 by feth (2014-09-30 10:34:33+00:00)
Title: Really copy dict, not only the ref to the dict.

Code comment says dict is copied, but only ref to dict is copied:

# Create a copy of the object that we will return.
r = ret

Here, the local var 'r' is pointing to the exact same dict as the 'ret' argument.

I use