compose: fix type error, createVolume returns a promise

Signed-off-by: Petros Angelatos <petrosagg@gmail.com>
Change-type: patch
This commit is contained in:
Petros Angelatos 2018-03-08 23:29:46 -08:00
parent d61c5fe640
commit 4ba020a784
No known key found for this signature in database
GPG Key ID: 7DE8B46CDBCB42A1

View File

@ -61,7 +61,7 @@ module.exports = class Volumes
Name: "#{appId}_#{name}"
Labels: labels
DriverOpts: driverOpts
}).inspect().then(@format)
}).call('inspect').then(@format)
.tapCatch (err) =>
@logger.logSystemEvent(logTypes.createVolumeError, { volume: { name }, error: err })