Revision 006c6249

b/snf-cyclades-app/synnefo/api/servers.py
277 277
            raise faults.BadRequest("Malformed request")
278 278

  
279 279
        # Verify that personalities are well-formed
280
        util.verify_personalitity(personality)
280
        util.verify_personality(personality)
281 281
        # Get image information
282 282
        image = util.get_image_dict(image_id, user_id)
283 283
        # Get flavor (ensure it is active)
......
335 335
            if provider == 'vlmc':
336 336
                flavor.disk_origin = image['backend_id']
337 337
                image['backend_id'] = 'null'
338
        else:
339
            flavor.disk_provider = None
338 340

  
339 341
        # dispatch server created signal
340 342
        server_created.send(sender=vm, created_vm_params={
b/snf-cyclades-app/synnefo/api/util.py
487 487

  
488 488
def verify_personality(personality):
489 489
    """Verify that a a list of personalities is well formed"""
490
    if len(personality) > settings.max_personality:
490
    if len(personality) > settings.MAX_PERSONALITY:
491 491
        raise OverLimit("Maximum number of personalities"
492 492
                               " exceeded")
493 493
    for p in personality:
b/snf-cyclades-app/synnefo/logic/backend.py
369 369

  
370 370
    kw['disk_template'] = flavor.disk_template
371 371
    kw['disks'] = [{"size": flavor.disk * 1024}]
372
    provider = flavor.provider
372
    provider = flavor.disk_provider
373 373
    if provider:
374 374
        kw['disks'][0]['provider'] = provider
375 375

  

Also available in: Unified diff