Merge pull request #1034 from balena-io/1033-fix-os-configure-wo-version

actions/os: Fix os configure using bluebird methods on plain promise
This commit is contained in:
Thodoris Greasidis 2018-11-26 11:02:50 +02:00 committed by GitHub
commit 78985ff633
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -279,7 +279,7 @@ exports.configure =
answers.version = options.version answers.version = options.version
if not answers.version? if not answers.version?
answers.version = helpers.getOsVersion(params.image, manifest).tap (version) -> answers.version = Promise.resolve(helpers.getOsVersion(params.image, manifest)).tap (version) ->
if not version? if not version?
throw new Error( throw new Error(
'Could not read OS version from the image. ' + 'Could not read OS version from the image. ' +