From 603b75be8f0e16886d295cd6c0dc29823461634d Mon Sep 17 00:00:00 2001 From: MarkDeMaria Date: Fri, 17 Mar 2017 13:31:05 -0400 Subject: [PATCH] Make Deployment Config Promise Compliant --- app/scripts/controllers/deploymentConfig.js | 4 ++-- dist/scripts/scripts.js | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/app/scripts/controllers/deploymentConfig.js b/app/scripts/controllers/deploymentConfig.js index 78012f025b..d9de018fed 100644 --- a/app/scripts/controllers/deploymentConfig.js +++ b/app/scripts/controllers/deploymentConfig.js @@ -258,8 +258,8 @@ angular.module('openshiftConsole') // List limit ranges in this project to determine if there is a default // CPU request for autoscaling. - DataService.list("limitranges", context, function(response) { - limitRanges = response.by("metadata.name"); + DataService.list("limitranges", context).then(function(resp) { + limitRanges = resp.by("metadata.name"); updateHPAWarnings(); }); diff --git a/dist/scripts/scripts.js b/dist/scripts/scripts.js index 1bc0e26fef..08172bf6ea 100644 --- a/dist/scripts/scripts.js +++ b/dist/scripts/scripts.js @@ -6288,7 +6288,7 @@ params:{ labelSelector:q("deploymentConfig") + "=" + a.deploymentConfigName } } -})), f.list("limitranges", e, function(a) { +})), f.list("limitranges", e).then(function(a) { C = a.by("metadata.name"), D(); }), f.list("configmaps", e, null, { errorNotification:!1