Revision 8528b8ac snf-cyclades-app/synnefo/logic/backend.py
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