Skip to content

Commit

Permalink
feat(marathonutil): add tests and fix length failure
Browse files Browse the repository at this point in the history
Closes DCOS-22130 DCOS-22259
  • Loading branch information
Poltergeist committed May 3, 2018
1 parent da60a58 commit 4d40612
Show file tree
Hide file tree
Showing 2 changed files with 519 additions and 1 deletion.
2 changes: 1 addition & 1 deletion plugins/services/src/js/utils/MarathonUtil.js
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ function parsePod(pod) {

const mounts = pod.spec.containers.reduce(function(
memo,
{ name: containerName, volumeMounts }
{ name: containerName, volumeMounts = [] }
) {
if (volumeMounts.length > 0) {
volumeMounts.forEach(function(volumeMount) {
Expand Down
Loading

0 comments on commit 4d40612

Please sign in to comment.