Revision 6de6677b snf-cyclades-app/synnefo/logic/utils.py

b/snf-cyclades-app/synnefo/logic/utils.py
31 31

  
32 32
from synnefo.db.models import VirtualMachine, Network
33 33
from django.conf import settings
34
from copy import copy
34
from copy import deepcopy
35 35

  
36 36
def id_from_instance_name(name):
37 37
    """Returns VirtualMachine's Django id, given a ganeti machine name.
......
114 114

  
115 115
def hide_pass(kw):
116 116
    if 'osparams' in kw and 'img_passwd' in kw['osparams']:
117
        kw1 = copy(kw)
117
        kw1 = deepcopy(kw)
118 118
        kw1['osparams']['img_passwd'] = 'x' * 8
119 119
        return kw1
120 120
    else:

Also available in: Unified diff