Skip to content

Commit 4bf3905

Browse files
author
OpenShift Bot
authored
Merge pull request #1348 from benjaminapetersen/list-update-edit-bc
Merged by openshift-bot
2 parents ad6c807 + cd33fcf commit 4bf3905

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

app/scripts/controllers/edit/buildConfig.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -244,7 +244,7 @@ angular.module('openshiftConsole')
244244
$scope.jenkinsfileOptions.type = 'inline';
245245
}
246246

247-
DataService.list("secrets", context, function(secrets) {
247+
DataService.list("secrets", context).then(function(secrets) {
248248
var secretsByType = SecretsService.groupSecretsByType(secrets);
249249
var secretNamesByType =_.mapValues(secretsByType, function(secrets) {return _.map(secrets, 'metadata.name');});
250250
// Add empty option to the image/source secrets

dist/scripts/scripts.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -6343,7 +6343,7 @@ a.alerts[b.name] = b.data;
63436343
var p = [], q = b("buildStrategy");
63446344
j.get(d.project).then(_.spread(function(c, e) {
63456345
return a.project = c, a.context = e, a.breadcrumbs[0].title = b("displayName")(c), g.canI("buildconfigs", "update", d.project) ? void h.get("buildconfigs", d.buildconfig, e).then(function(b) {
6346-
a.buildConfig = b, n(), a.updatedBuildConfig = angular.copy(a.buildConfig), a.buildStrategy = q(a.updatedBuildConfig), a.strategyType = a.buildConfig.spec.strategy.type, a.envVars = a.buildStrategy.env || [], a.triggers = r(a.triggers, a.buildConfig.spec.triggers), a.sources = y(a.sources, a.buildConfig.spec.source), _.has(b, "spec.strategy.jenkinsPipelineStrategy.jenkinsfile") && (a.jenkinsfileOptions.type = "inline"), h.list("secrets", e, function(b) {
6346+
a.buildConfig = b, n(), a.updatedBuildConfig = angular.copy(a.buildConfig), a.buildStrategy = q(a.updatedBuildConfig), a.strategyType = a.buildConfig.spec.strategy.type, a.envVars = a.buildStrategy.env || [], a.triggers = r(a.triggers, a.buildConfig.spec.triggers), a.sources = y(a.sources, a.buildConfig.spec.source), _.has(b, "spec.strategy.jenkinsPipelineStrategy.jenkinsfile") && (a.jenkinsfileOptions.type = "inline"), h.list("secrets", e).then(function(b) {
63476347
var c = l.groupSecretsByType(b), d = _.mapValues(c, function(a) {
63486348
return _.map(a, "metadata.name");
63496349
});

0 commit comments

Comments
 (0)