From 716976efa8efa064b5de36ba657a6e2f8fde7658 Mon Sep 17 00:00:00 2001 From: Dave Eddy Date: Thu, 3 Sep 2015 00:02:09 -0400 Subject: [PATCH] pass create data in post body --- lib/cloudapi2.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/cloudapi2.js b/lib/cloudapi2.js index ba06a39..702ee4d 100644 --- a/lib/cloudapi2.js +++ b/lib/cloudapi2.js @@ -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); });