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,15 +236,17 @@ function makeVerticesAndEdges(Graph $graph, array $services, array $volumes, arr
|
|||
addService($graph, $service);
|
||||
|
||||
if (isset($definition['extends'])) {
|
||||
$configuration = readConfiguration(dirname($path).DIRECTORY_SEPARATOR.$definition['extends']['file']);
|
||||
$extendedServices = fetchServices($configuration);
|
||||
$extendedVolumes = fetchVolumes($configuration);
|
||||
$extendedNetworks = fetchVolumes($configuration);
|
||||
if (isset($definition['extends']['file'])) {
|
||||
$configuration = readConfiguration(dirname($path) . DIRECTORY_SEPARATOR . $definition['extends']['file']);
|
||||
$extendedServices = fetchServices($configuration);
|
||||
$extendedVolumes = 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(
|
||||
addService($graph, $definition['extends']['service']),
|
||||
addService($graph, $definition['extends']['service']),
|
||||
$graph->getVertex($service),
|
||||
'extends'
|
||||
);
|
||||
|
|
Loading…
Reference in a new issue