Fixed the case where a service has no external file to import (#47)
This commit is contained in:
parent
bf8d4b200f
commit
ead07e8fa9
1 changed files with 8 additions and 6 deletions
|
@ -236,12 +236,14 @@ function makeVerticesAndEdges(Graph $graph, array $services, array $volumes, arr
|
||||||
addService($graph, $service);
|
addService($graph, $service);
|
||||||
|
|
||||||
if (isset($definition['extends'])) {
|
if (isset($definition['extends'])) {
|
||||||
$configuration = readConfiguration(dirname($path).DIRECTORY_SEPARATOR.$definition['extends']['file']);
|
if (isset($definition['extends']['file'])) {
|
||||||
|
$configuration = readConfiguration(dirname($path) . DIRECTORY_SEPARATOR . $definition['extends']['file']);
|
||||||
$extendedServices = fetchServices($configuration);
|
$extendedServices = fetchServices($configuration);
|
||||||
$extendedVolumes = fetchVolumes($configuration);
|
$extendedVolumes = fetchVolumes($configuration);
|
||||||
$extendedNetworks = fetchVolumes($configuration);
|
$extendedNetworks = fetchVolumes($configuration);
|
||||||
|
|
||||||
$graph = makeVerticesAndEdges($graph, $extendedServices, $extendedVolumes, $extendedNetworks, dirname($path).DIRECTORY_SEPARATOR.$definition['extends']['file'], $flags);
|
$graph = makeVerticesAndEdges($graph, $extendedServices, $extendedVolumes, $extendedNetworks, dirname($path).DIRECTORY_SEPARATOR.$definition['extends']['file'], $flags);
|
||||||
|
}
|
||||||
|
|
||||||
addRelation(
|
addRelation(
|
||||||
addService($graph, $definition['extends']['service']),
|
addService($graph, $definition['extends']['service']),
|
||||||
|
|
Loading…
Reference in a new issue