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

View File

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