Skip to content

Commit dfb604a

Browse files
author
OpenShift Bot
authoredMar 9, 2017
Merge pull request #1328 from benjaminapetersen/list-update-attach-pvc
Merged by openshift-bot
2 parents 4bc00c8 + 717f1e2 commit dfb604a

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed
 

‎app/scripts/controllers/attachPVC.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ angular.module('openshiftConsole')
127127
}
128128
);
129129

130-
DataService.list("persistentvolumeclaims", context, function(pvcs) {
130+
DataService.list("persistentvolumeclaims", context).then(function(pvcs) {
131131
$scope.pvcs = orderByDisplayName(pvcs.by("metadata.name"));
132132
if (!_.isEmpty($scope.pvcs) && !$scope.attach.persistentVolumeClaim) {
133133
$scope.attach.persistentVolumeClaim = _.head($scope.pvcs);

‎dist/scripts/scripts.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -8034,7 +8034,7 @@ var b = _.get(a, "spec.template");
80348034
c.existingVolumeNames = k.getVolumeNames(b);
80358035
}, function(a) {
80368036
p(b.name + " could not be loaded.", m(a));
8037-
}), h.list("persistentvolumeclaims", j, function(a) {
8037+
}), h.list("persistentvolumeclaims", j).then(function(a) {
80388038
c.pvcs = l(a.by("metadata.name")), _.isEmpty(c.pvcs) || c.attach.persistentVolumeClaim || (c.attach.persistentVolumeClaim = _.head(c.pvcs));
80398039
});
80408040
};

0 commit comments

Comments
 (0)
Please sign in to comment.