From 594f9f8ce091dbbaebff55911732c018b69973d5 Mon Sep 17 00:00:00 2001 From: benjaminapetersen Date: Wed, 8 Mar 2017 13:02:42 -0500 Subject: [PATCH] Update DataService.list in deployment controller --- app/scripts/controllers/deployment.js | 2 +- dist/scripts/scripts.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/scripts/controllers/deployment.js b/app/scripts/controllers/deployment.js index 3d4fe31fcf..3d70b2fecf 100644 --- a/app/scripts/controllers/deployment.js +++ b/app/scripts/controllers/deployment.js @@ -214,7 +214,7 @@ 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) { + DataService.list("limitranges", context).then(function(response) { limitRanges = response.by("metadata.name"); updateHPAWarnings(); }); diff --git a/dist/scripts/scripts.js b/dist/scripts/scripts.js index 0017726fc1..e009cca847 100644 --- a/dist/scripts/scripts.js +++ b/dist/scripts/scripts.js @@ -5168,7 +5168,7 @@ type:"error", message:404 === c.status ? "This deployment can not be found, it may have been deleted." :"The deployment details could not be loaded.", details:404 === c.status ? "Any remaining deployment history for this deployment will be shown." :"Reason: " + b("getErrorDetails")(c) }; -}), e.list("limitranges", k, function(a) { +}), e.list("limitranges", k).then(function(a) { v = a.by("metadata.name"), w(); }); var x = [], y = [];