Skip to content

Commit 603b75b

Browse files
MarkDeMariaMarkDeMaria
MarkDeMaria
authored and
MarkDeMaria
committed
Make Deployment Config Promise Compliant
1 parent 264b265 commit 603b75b

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

app/scripts/controllers/deploymentConfig.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -258,8 +258,8 @@ angular.module('openshiftConsole')
258258

259259
// List limit ranges in this project to determine if there is a default
260260
// CPU request for autoscaling.
261-
DataService.list("limitranges", context, function(response) {
262-
limitRanges = response.by("metadata.name");
261+
DataService.list("limitranges", context).then(function(resp) {
262+
limitRanges = resp.by("metadata.name");
263263
updateHPAWarnings();
264264
});
265265

dist/scripts/scripts.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -6288,7 +6288,7 @@ params:{
62886288
labelSelector:q("deploymentConfig") + "=" + a.deploymentConfigName
62896289
}
62906290
}
6291-
})), f.list("limitranges", e, function(a) {
6291+
})), f.list("limitranges", e).then(function(a) {
62926292
C = a.by("metadata.name"), D();
62936293
}), f.list("configmaps", e, null, {
62946294
errorNotification:!1

0 commit comments

Comments
 (0)