Revision 2c022086

b/snf-cyclades-app/synnefo/logic/backend.py
482 482
                                                   details=details)
483 483

  
484 484

  
485
def create_instance(vm, public_nic, flavor, image):
485
def create_instance(vm, nics, flavor, image):
486 486
    """`image` is a dictionary which should contain the keys:
487 487
            'backend_id', 'format' and 'metadata'
488 488

  
......
507 507
        kw['disks'][0]['provider'] = provider
508 508
        kw['disks'][0]['origin'] = flavor.disk_origin
509 509

  
510
    kw['nics'] = [public_nic]
510
    kw['nics'] = nics
511 511
    if vm.backend.use_hotplug():
512 512
        kw['hotplug'] = True
513 513
    # Defined in settings.GANETI_CREATEINSTANCE_KWARGS
b/snf-cyclades-app/synnefo/logic/servers.py
205 205
        transaction.commit()
206 206

  
207 207
    try:
208
        jobID = backend.create_instance(vm, nic, flavor, image)
208
        jobID = backend.create_instance(vm, [nic], flavor, image)
209 209
        # At this point the job is enqueued in the Ganeti backend
210 210
        vm.backendjobid = jobID
211 211
        vm.task = "BUILD"

Also available in: Unified diff