Revision a6e6fe48 snf-cyclades-app/synnefo/logic/management/commands/server-import.py
b/snf-cyclades-app/synnefo/logic/management/commands/server-import.py | ||
---|---|---|
129 | 129 |
|
130 | 130 |
def import_server(instance_name, backend_id, flavor_id, image_id, user_id, |
131 | 131 |
new_public_nic, stream=sys.stdout): |
132 |
flavor = common.get_flavor(flavor_id)
|
|
133 |
backend = common.get_backend(backend_id)
|
|
132 |
flavor = common.get_resource("flavor", flavor_id)
|
|
133 |
backend = common.get_resource("backend", backend_id)
|
|
134 | 134 |
|
135 | 135 |
backend_client = backend.get_client() |
136 | 136 |
|
Also available in: Unified diff