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 = [];