From 017863bfc0a6daf03a3d92a9da8b84551ba5791f Mon Sep 17 00:00:00 2001 From: Karl Gutwin Date: Wed, 12 Aug 2015 14:47:47 -0400 Subject: [PATCH] VolumesFrom support container names --- app/components/containersNetwork/containersNetworkController.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/components/containersNetwork/containersNetworkController.js b/app/components/containersNetwork/containersNetworkController.js index 3219a0951..216261638 100644 --- a/app/components/containersNetwork/containersNetworkController.js +++ b/app/components/containersNetwork/containersNetworkController.js @@ -54,7 +54,7 @@ angular.module('containersNetwork', ['ngVis']) }; this.addVolumeEdgeIfExists = function(from, to) { - if (from.VolumesFrom != null && from.VolumesFrom[to.Id] != null) { + if (from.VolumesFrom != null && (from.VolumesFrom[to.Id] != null || from.VolumesFrom[to.Name] != null)) { this.edges.add({ from: from.Id, to: to.Id,