Fix resin preload --splash-image argument handling

Connects-To: #677

Change-Type: patch
This commit is contained in:
Alexis Svinartchouk 2017-10-06 11:14:46 +02:00
parent c187c113d9
commit 10976bed43
2 changed files with 5 additions and 0 deletions

View File

@ -174,6 +174,8 @@ module.exports = {
delete options.app;
options.dontDetectFlasherTypeImages = options['dont-detect-flasher-type-images'];
delete options['dont-detect-flasher-type-images'];
options.splashImage = options['splash-image'];
delete options['splash-image'];
return dockerUtils.getDocker(options).then(function(docker) {
var buildOutputStream;
buildOutputStream = preload.build(docker);

View File

@ -168,6 +168,9 @@ module.exports =
options.dontDetectFlasherTypeImages = options['dont-detect-flasher-type-images']
delete options['dont-detect-flasher-type-images']
options.splashImage = options['splash-image']
delete options['splash-image']
# Get a configured dockerode instance
dockerUtils.getDocker(options)
.then (docker) ->