Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit a39092a

Browse files
committedOct 23, 2017
Use correct HTTP status from failed DataService.list
1 parent ac7501d commit a39092a

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed
 

‎app/scripts/controllers/addConfigVolume.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ angular.module('openshiftConsole')
143143
DataService.list($scope.configMapVersion, context, null, { errorNotification: false }).then(function(configMapData) {
144144
$scope.configMaps = orderByDisplayName(configMapData.by("metadata.name"));
145145
}, function(e) {
146-
if (e.code === 403) {
146+
if (e.status === 403) {
147147
$scope.configMaps = [];
148148
return;
149149
}
@@ -154,7 +154,7 @@ angular.module('openshiftConsole')
154154
DataService.list($scope.secretVersion, context, null, { errorNotification: false }).then(function(secretData) {
155155
$scope.secrets = orderByDisplayName(secretData.by("metadata.name"));
156156
}, function(e) {
157-
if (e.code === 403) {
157+
if (e.status === 403) {
158158
$scope.secrets = [];
159159
return;
160160
}

‎app/scripts/controllers/edit/deploymentConfig.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@ angular.module('openshiftConsole')
155155
$scope.availableConfigMaps = configMapDataOrdered;
156156
$scope.valueFromObjects = configMapDataOrdered.concat(secretDataOrdered);
157157
}, function(e) {
158-
if (e.code === 403) {
158+
if (e.status === 403) {
159159
return;
160160
}
161161

@@ -173,7 +173,7 @@ angular.module('openshiftConsole')
173173
secretsArray.unshift("");
174174
});
175175
}, function(e) {
176-
if (e.code === 403) {
176+
if (e.status === 403) {
177177
return;
178178
}
179179

‎app/scripts/directives/deployImage.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -234,7 +234,7 @@ angular.module("openshiftConsole")
234234
configMapDataOrdered = orderByDisplayName(configMapData.by("metadata.name"));
235235
$scope.valueFromNamespace[project.metadata.name] = configMapDataOrdered.concat(secretDataOrdered);
236236
}, function(e) {
237-
if (e.code === 403) {
237+
if (e.status === 403) {
238238
return;
239239
}
240240

@@ -250,7 +250,7 @@ angular.module("openshiftConsole")
250250
secretDataOrdered = orderByDisplayName(secretData.by("metadata.name"));
251251
$scope.valueFromNamespace[project.metadata.name] = secretDataOrdered.concat(configMapDataOrdered);
252252
}, function(e) {
253-
if (e.code === 403) {
253+
if (e.status === 403) {
254254
return;
255255
}
256256

0 commit comments

Comments
 (0)
Please sign in to comment.