Skip to content

Commit

Permalink
EDGECLOUD-4853 test vapp has VM[0] before asking for vapp con sec (#1460
Browse files Browse the repository at this point in the history
)
  • Loading branch information
mwilliams-mex authored and venkytv committed May 6, 2021
1 parent 9e87c9e commit f7df5ff
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions crm-platforms/vcd/vcd.go
Original file line number Diff line number Diff line change
Expand Up @@ -354,6 +354,9 @@ func (v *VcdPlatform) GetAllVAppsForVdcByIntAddr(ctx context.Context, vcdClient
if v.Verbose {
log.SpanLog(ctx, log.DebugLevelInfra, "GetAllVappsByIntAddr consider ", "vapp", res.Name)
}
if vapp.VApp.Children == nil || len(vapp.VApp.Children.VM) == 0 {
continue
}
ncs, err := vapp.GetNetworkConnectionSection()
if err != nil {
log.SpanLog(ctx, log.DebugLevelInfra, "GetAllVappsByIntAddr ", "error", err)
Expand Down

0 comments on commit f7df5ff

Please sign in to comment.