diff options
| author | Matt Spinler <spinler@us.ibm.com> | 2017-03-21 09:51:53 -0500 |
|---|---|---|
| committer | Matt Spinler <spinler@us.ibm.com> | 2017-03-21 14:11:34 -0500 |
| commit | 20c6b2d2cc4bcfa92e3badf8e1dd0ea87adf659a (patch) | |
| tree | 831c9b4527fe01b64a61ea55c045ed8bd0494a63 | |
| parent | 51c4191433d214c5fe5d007f013d8d939c4ecdeb (diff) | |
| download | serverwiz-20c6b2d2cc4bcfa92e3badf8e1dd0ea87adf659a.tar.gz serverwiz-20c6b2d2cc4bcfa92e3badf8e1dd0ea87adf659a.zip | |
Targets.pm: Don't fail if BUS_TYPE is missing
In findConnections, don't die if a target is missing
the BUS_TYPE attribute.
Signed-off-by: Matt Spinler <spinler@us.ibm.com>
| -rw-r--r-- | scripts/Targets.pm | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/scripts/Targets.pm b/scripts/Targets.pm index 3800e8c..7cb8ef0 100644 --- a/scripts/Targets.pm +++ b/scripts/Targets.pm @@ -938,7 +938,12 @@ sub findConnections foreach my $child ($self->getAllTargetChildren($target)) { - my $child_bus_type = $self->getBusType($child); + my $child_bus_type = ""; + if (!$self->isBadAttribute($child, "BUS_TYPE")) + { + $child_bus_type = $self->getBusType($child); + } + if ($child_bus_type eq $bus_type) { for (my $i = 0; $i < $self->getNumConnections($child); $i++) |

