Revision 27d6d48d
b/snf-cyclades-app/synnefo/logic/backend.py | ||
---|---|---|
295 | 295 |
if provider: |
296 | 296 |
kw['disks'][0]['provider'] = provider |
297 | 297 |
|
298 |
if provider == 'vlmc': |
|
299 |
kw['disks'][0]['origin'] = image['backend_id'] |
|
300 |
|
|
298 | 301 |
kw['nics'] = [public_nic] |
299 | 302 |
if settings.GANETI_USE_HOTPLUG: |
300 | 303 |
kw['hotplug'] = True |
... | ... | |
320 | 323 |
if personality: |
321 | 324 |
kw['osparams']['img_personality'] = json.dumps(personality) |
322 | 325 |
|
326 |
if provider != None and provider == 'vlmc': |
|
327 |
kw['osparams']['img_id'] = 'null' |
|
328 |
|
|
323 | 329 |
kw['osparams']['img_properties'] = json.dumps(image['metadata']) |
324 | 330 |
|
325 | 331 |
# Defined in settings.GANETI_CREATEINSTANCE_KWARGS |
Also available in: Unified diff