pass create data in post body

This commit is contained in:
Dave Eddy 2015-09-03 00:02:09 -04:00
parent 1cc87edb0f
commit 716976efa8
1 changed files with 2 additions and 1 deletions

View File

@ -597,7 +597,8 @@ CloudAPI.prototype.createMachine = function createMachine(options, callback) {
// XXX how does options.networks array work here?
this._request({
method: 'POST',
path: this._path(format('/%s/machines', this.user), options)
path: format('/%s/machines', this.user),
data: options
}, function (err, req, res, body) {
callback(err, body, res);
});