Revision ce5fb329 ncclient/operations/edit.py

b/ncclient/operations/edit.py
12 12
# See the License for the specific language governing permissions and
13 13
# limitations under the License.
14 14

  
15
from copy import deepcopy
16

  
15 17
from ncclient import content
16 18

  
17 19
from rpc import RPC
......
48 50

  
49 51
        :seealso: :ref:`return`
50 52
        """
51
        spec = EditConfig.SPEC.copy()
53
        spec = deepcopy(EditConfig.SPEC)
52 54
        subtree = spec['subtree']
53 55
        subtree.append(util.store_or_url('target', target, self._assert))
54 56
        subtree.append(content.validated_element(config, ('config', content.qualify('config'))))
......
85 87

  
86 88
        :seealso: :ref:`return`
87 89
        """
88
        spec = DeleteConfig.SPEC.copy()
90
        spec = deepcopy(DeleteConfig.SPEC)
89 91
        spec['subtree'].append(util.store_or_url('target', target, self._assert))
90 92
        return self._request(spec)
91 93

  
......
108 110

  
109 111
        :seealso: :ref:`return`
110 112
        """
111
        spec = CopyConfig.SPEC.copy()
113
        spec = deepcopy(CopyConfig.SPEC)
112 114
        spec['subtree'].append(util.store_or_url('target', target, self._assert))
113 115
        spec['subtree'].append(util.store_or_url('source', source, self._assert))
114 116
        return self._request(spec)
......
131 133

  
132 134
        :seealso: :ref:`return`
133 135
        """
134
        spec = Validate.SPEC.copy()
136
        spec = deepcopy(Validate.SPEC)
135 137
        try:
136 138
            src = content.validated_element(source, ('config', content.qualify('config')))
137 139
        except Exception as e:
......
168 170

  
169 171
        :seealso: :ref:`return`
170 172
        """
171
        spec = SPEC.copy()
173
        spec = deepcopy(Commit.SPEC)
172 174
        if confirmed:
173 175
            self._assert(':confirmed-commit')
174 176
            spec['subtree'].append({'tag': 'confirmed'})

Also available in: Unified diff