Commit 3a9f0a60 authored by Kostas Papadimitriou's avatar Kostas Papadimitriou
Browse files

UI create vm errors fix

never forget to pass vm create callback arguments
parent ddd83388
......@@ -2125,9 +2125,9 @@
opts = {name: name, imageRef: image.id, flavorRef: flavor.id, metadata:meta}
opts = _.extend(opts, extra);
var cb = function() {
var cb = function(data) {
snf.ui.main.load_user_quotas();
callback();
callback(data);
}
this.api_call(this.path, "create", {'server': opts}, undefined, undefined, cb, {critical: true});
......
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