Revision 8528b8ac

b/snf-cyclades-app/synnefo/api/management/commands/server-create.py
162 162

  
163 163
        try:
164 164
            # Create the instance in Backend
165
            jobID = create_instance(vm, nic, flavor, image, password)
165
            jobID = create_instance(vm, nic, flavor, image)
166 166

  
167 167
            vm.backendjobid = jobID
168 168
            vm.save()
b/snf-cyclades-app/synnefo/logic/backend.py
349 349
                                                   details=details)
350 350

  
351 351

  
352
def create_instance(vm, public_nic, flavor, image, password=None):
352
def create_instance(vm, public_nic, flavor, image):
353 353
    """`image` is a dictionary which should contain the keys:
354 354
            'backend_id', 'format' and 'metadata'
355 355

  
......
401 401
        'img_id': image['backend_id'],
402 402
        'img_format': image['format']}
403 403

  
404
    if password:
405
        # Only for admin created VMs !!
406
        kw['osparams']['img_passwd'] = password
407

  
408 404
    # Defined in settings.GANETI_CREATEINSTANCE_KWARGS
409 405
    # kw['hvparams'] = dict(serial_console=False)
410 406

  

Also available in: Unified diff