Commit 27a16e89 authored by Giorgos Korfiatis's avatar Giorgos Korfiatis
Browse files

cyclades: Return the newest vm object upon creation

The server_command decorator commits the just created object and retrieves
it back from the database. Return the latter, because the former is stale
in memory.
parent c7fd3522
......@@ -174,7 +174,7 @@ def create(userid, name, password, flavor, image, metadata={},
vm=vm)
# Create the server in Ganeti.
create_server(vm, nics, flavor, image, personality, password)
vm = create_server(vm, nics, flavor, image, personality, password)
return vm
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment