Fix issue-15
This commit is contained in:
parent
7fb5966d54
commit
c3c55c66eb
|
@ -64,7 +64,7 @@ StorageService.prototype.getContainers = function (cb) {
|
||||||
StorageService.prototype.createContainer = function (options, cb) {
|
StorageService.prototype.createContainer = function (options, cb) {
|
||||||
options = options || {};
|
options = options || {};
|
||||||
if ('object' === typeof options && !(options instanceof storage.Container)) {
|
if ('object' === typeof options && !(options instanceof storage.Container)) {
|
||||||
var Container = factory.getProvider(this.provider).Container;
|
var Container = factory.getProvider(this.provider).storage.Container;
|
||||||
options = new Container(this.client, options);
|
options = new Container(this.client, options);
|
||||||
}
|
}
|
||||||
return this.client.createContainer(options, function (err, container) {
|
return this.client.createContainer(options, function (err, container) {
|
||||||
|
|
|
@ -7,16 +7,16 @@
|
||||||
"test": "./node_modules/.bin/mocha --timeout 30000 test/*test.js"
|
"test": "./node_modules/.bin/mocha --timeout 30000 test/*test.js"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"pkgcloud": "~0.9.4",
|
"pkgcloud": "~0.9.6",
|
||||||
"async": "~0.2.10",
|
"async": "~0.9.0",
|
||||||
"formidable": "~1.0.14"
|
"formidable": "~1.0.14"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"express": "~3.4.0",
|
"express": "~3.4.0",
|
||||||
"loopback": "1.x.x",
|
"loopback": "1.x.x",
|
||||||
"mocha": "~1.18.2",
|
"mocha": "~1.18.2",
|
||||||
"supertest": "~0.10.0",
|
"supertest": "~0.13.0",
|
||||||
"mkdirp": "~0.3.5"
|
"mkdirp": "~0.5.0"
|
||||||
},
|
},
|
||||||
"repository": {
|
"repository": {
|
||||||
"type": "git",
|
"type": "git",
|
||||||
|
|
Loading…
Reference in New Issue