diff --git a/app/components/container/containerController.js b/app/components/container/containerController.js index 7b78aa658..ae3b793e1 100644 --- a/app/components/container/containerController.js +++ b/app/components/container/containerController.js @@ -75,8 +75,8 @@ function ($scope, $state, $stateParams, $filter, Container, ContainerCommit, Ima $scope.commit = function () { $('#createImageSpinner').show(); - var image = _.toLower($scope.config.Image); - var registry = _.toLower($scope.config.Registry); + var image = $scope.config.Image; + var registry = $scope.config.Registry; var imageConfig = ImageHelper.createImageConfigForCommit(image, registry); ContainerCommit.commit({id: $stateParams.id, tag: imageConfig.tag, repo: imageConfig.repo}, function (d) { $('#createImageSpinner').hide(); diff --git a/app/components/createContainer/createContainerController.js b/app/components/createContainer/createContainerController.js index 439b7bf34..be70bdec7 100644 --- a/app/components/createContainer/createContainerController.js +++ b/app/components/createContainer/createContainerController.js @@ -141,7 +141,7 @@ function ($scope, $state, $stateParams, $filter, Config, Info, Container, Contai } function prepareImageConfig(config) { - var image = _.toLower(config.Image); + var image = config.Image; var registry = $scope.formValues.Registry; var imageConfig = ImageHelper.createImageConfigForContainer(image, registry); config.Image = imageConfig.fromImage + ':' + imageConfig.tag; diff --git a/app/components/image/imageController.js b/app/components/image/imageController.js index ec4ba5c91..7c474086a 100644 --- a/app/components/image/imageController.js +++ b/app/components/image/imageController.js @@ -21,8 +21,8 @@ function ($scope, $stateParams, $state, Image, ImageHelper, Messages) { $scope.tagImage = function() { $('#loadingViewSpinner').show(); - var image = _.toLower($scope.config.Image); - var registry = _.toLower($scope.config.Registry); + var image = $scope.config.Image; + var registry = $scope.config.Registry; var imageConfig = ImageHelper.createImageConfigForCommit(image, registry); Image.tag({id: $stateParams.id, tag: imageConfig.tag, repo: imageConfig.repo}, function (d) { Messages.send('Image successfully tagged'); diff --git a/app/components/images/imagesController.js b/app/components/images/imagesController.js index b9be43dc4..3a17ab7d5 100644 --- a/app/components/images/imagesController.js +++ b/app/components/images/imagesController.js @@ -27,8 +27,8 @@ function ($scope, $state, Config, Image, ImageHelper, Messages, Settings) { $scope.pullImage = function() { $('#pullImageSpinner').show(); - var image = _.toLower($scope.config.Image); - var registry = _.toLower($scope.config.Registry); + var image = $scope.config.Image; + var registry = $scope.config.Registry; var imageConfig = ImageHelper.createImageConfigForContainer(image, registry); Image.create(imageConfig, function (data) { var err = data.length > 0 && data[data.length - 1].hasOwnProperty('error'); diff --git a/app/components/templates/templatesController.js b/app/components/templates/templatesController.js index b7d10fb94..384516d75 100644 --- a/app/components/templates/templatesController.js +++ b/app/components/templates/templatesController.js @@ -134,7 +134,7 @@ function ($scope, $q, $state, $filter, $anchorScroll, Config, Info, Container, C } function prepareImageConfig(config, template) { - var image = _.toLower(template.image); + var image = template.image; var registry = template.registry || ''; var imageConfig = ImageHelper.createImageConfigForContainer(image, registry); config.Image = imageConfig.fromImage + ':' + imageConfig.tag;