From 723bf3874f5ac9f65f25ff92d21cae1606848d16 Mon Sep 17 00:00:00 2001 From: Anthony Lapenna Date: Mon, 13 Mar 2017 10:09:34 +0100 Subject: [PATCH] fix(templates): fix an issue where the image would not be pulled correctly (#664) --- app/components/templates/templatesController.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/app/components/templates/templatesController.js b/app/components/templates/templatesController.js index a56996ec0..5a5395977 100644 --- a/app/components/templates/templatesController.js +++ b/app/components/templates/templatesController.js @@ -46,7 +46,10 @@ function ($scope, $q, $state, $anchorScroll, Config, ContainerService, Container }); } TemplateService.updateContainerConfigurationWithVolumes(templateConfiguration.container, template, data); - return $q.all(volumeResourceControlQueries).then(ImageService.pullImage(templateConfiguration.image)); + return $q.all(volumeResourceControlQueries) + .then(function success() { + return ImageService.pullImage(templateConfiguration.image); + }); }) .then(function success(data) { return ContainerService.createAndStartContainer(templateConfiguration.container);