mirror of
https://github.com/balena-io/balena-cli.git
synced 2025-01-31 08:25:36 +00:00
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:
commit
78985ff633
@ -279,7 +279,7 @@ exports.configure =
|
||||
answers.version = options.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?
|
||||
throw new Error(
|
||||
'Could not read OS version from the image. ' +
|
||||
|
Loading…
x
Reference in New Issue
Block a user